Skip to content

Commit

Permalink
don't send input back to client (they have it and it can be big)
Browse files Browse the repository at this point in the history
Signed-off-by: Terence Parr <parrt@antlr.org>
  • Loading branch information
parrt committed Jul 28, 2024
1 parent bd936d6 commit 3cd4fe3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/antlr/v4/server/JsonSerializer.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ public static JsonObject toJSON(Tree t, Parser recog) throws IOException {
return null;
}
TokenStream tokenStream = recog.getInputStream();
CharStream inputStream = tokenStream.getTokenSource().getInputStream();
// CharStream inputStream = tokenStream.getTokenSource().getInputStream();
CharStream inputStream = null; // don't send input back to client (they have it and it can be big)
return toJSON(t, Arrays.asList(ruleNames), recog.getVocabulary(), tokenStream, inputStream,
null, null, null);
}
Expand Down

0 comments on commit 3cd4fe3

Please # to comment.