rokucommunity / brightscript-language

This project is no longer maintained. Its successor is BrighterScript.
https://github.com/RokuCommunity/brighterscript
MIT License
6 stars 3 forks source link

Validate the callFunc syntax. #9

Open TwitchBronBron opened 5 years ago

TwitchBronBron commented 5 years ago

Support parameter checking for callFunc. Until we have full object checking, I'm not quite sure how to catch this except to find every instance of whatever.callFunc, and make sure there are exactly 2 parameters....which may be the best option for now.

The issue is, callFunc("funcName") is a noop when you omit the second parameter.

https://sdkdocs.roku.com/display/sdkdoc/Handling+Application+Events#HandlingApplicationEvents-FunctionalFields