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
var indentation = CommonToken.fromType(Lexer.INDENTATION, text);
the text variable may sometimes be an empty string (zero-length). In such cases indentation.text returns undefined. The expected behaviour is to get back the same value you put into token.
antlr4ng version 3.0.4
antlr4ng-cli version 2.0.0
The text was updated successfully, but these errors were encountered:
When creating a new token with code like this:
the
text
variable may sometimes be an empty string (zero-length). In such casesindentation.text
returns undefined. The expected behaviour is to get back the same value you put into token.antlr4ng version 3.0.4
antlr4ng-cli version 2.0.0
The text was updated successfully, but these errors were encountered: