Skip to content

Commit

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

0 comments on commit 534a295

Please sign in to comment.