antlr4
antlr4 copied to clipboard
Missing TypeScript methods
There are missing methods for lexer commends, like setChannel(). Some of the set/get methods, which are in Java, are inconsistent in TypeScirpt. For example, _type in TypeScript is a public field, whereas in Java there are get and set methods to hide direct access.
Also, I wonder about text in TypeScript vs _text in JavaScript, whereas in setText() in Java sets _text. There is no this.text in the JS code.
I am writing a table of the API presented across all targets. This should help clarify what is missing. The fields in the lexer object are used when calling emit().