-
Notifications
You must be signed in to change notification settings - Fork 28
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
Add line numbers #74
Comments
Hm, yeah, I would also like to have that too, but I still don’t quite know how to, since it would be possible to interleave the AST with it. |
In the TypeScript AST, each node has metadata, for instance the start and end positions in the buffer. It'd be great to have such metadata, with the line number in addition. |
I guess that's similar to what nom_locate does. |
Having the start and end positions in the input slice would definitely help, that’s for sure. |
The AST does not currently contain line numbers. It would be handy to have for reporting semantic analysis problems.
The text was updated successfully, but these errors were encountered: