rokucommunity / brighterscript

A superset of Roku's BrightScript language
MIT License
152 stars 47 forks source link

Convert `getLeadingTrivia` to a getter #1232

Closed TwitchBronBron closed 3 weeks ago

TwitchBronBron commented 3 weeks ago

Now that https://github.com/rokucommunity/brighterscript/pull/1225 landed, I think we should convert .getLeadingTrivia() into a getter. This way it is easier for plugins to manipulate the AST without needing to call a function to get the results, and makes it more clear that it's an attribute of a node rather than a return value.

Tasks: