antlr4 icon indicating copy to clipboard operation
antlr4 copied to clipboard

Missing TypeScript methods

Open kaby76 opened this issue 1 year ago • 0 comments

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().

kaby76 avatar Apr 14 '24 12:04 kaby76