You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After it I tried to call method getText(context) for RuleContext but it returned a wrong result:
tokensStream.getText(context); // returns incorrect text, only text of first tokentokensStream.getText(); // returns correct text of all tokens
If fill() method was called before getText methods, these methods return a correct text:
tokensStream.fill();
tokensStream.getText(context); // returns correct text of tokens from contexttokensStream.getText(); // returns correct text of all tokens
The text was updated successfully, but these errors were encountered:
No problem, thanks for taking time to follow up on the Java side of this issue!
KvanTTT
changed the title
GetText method with arguments not always works correctly
getText method with arguments not always works correctly
Aug 3, 2016
I created
CommonTokenStream
from list of tokens by the following way:After it I tried to call method
getText(context)
for RuleContext but it returned a wrong result:If
fill()
method was called beforegetText
methods, these methods return a correct text:The text was updated successfully, but these errors were encountered: