crypto icon indicating copy to clipboard operation
crypto copied to clipboard

Including comments in the AST

Open TwitchBronBron opened this issue 5 years ago • 0 comments

Is there any interest in including comments in the AST? I have added a lot of support for comments in my sort-of fork of this project nested inside of BrighterScript, and would gladly submit a PR to add those parts back into brs if that's something you're interested in.

They obviously don't have any use in terms of the runtime, but I think there are probably other projects that depend on brs for parsing support, so having the availability of comments in the AST would enable tools to inspect comments above functions for things like type checking, doc generating, etc.

TwitchBronBron avatar Feb 22 '20 20:02 TwitchBronBron