Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing TypeScript methods #4592

Open
kaby76 opened this issue Apr 14, 2024 · 0 comments
Open

Missing TypeScript methods #4592

kaby76 opened this issue Apr 14, 2024 · 0 comments

Comments

@kaby76
Copy link
Contributor

kaby76 commented Apr 14, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant