rokucommunity / ropm

A package manager for the Roku platform.
MIT License
34 stars 6 forks source link

Add support for prefixing function references not used in a function call #12

Closed TwitchBronBron closed 3 years ago

TwitchBronBron commented 3 years ago

This PR adds support for finding and prefixing function references in ropm modules. Function references are when you use the name of a function, but don't call that function. Function references don't have an opening parentheses, making them harder to detect.

TwitchBronBron commented 3 years ago

I'm working on a better approach to this (using the brighterscript parser), but this is still a step in the right direction in the mean time, so I'm merging this for now.