Closed markwpearce closed 1 year ago
This is also a problem/issue for ifSGNodeFields
with overloaded methods observeField
and observeFieldScoped
Can probably be mitigated in the ScopeValidator
by checking function calls against UnionTypes and validating if the call does not meet either signature...
There may be others, but
ifStringOps
has a few:This is the worst case, because it doesn't conform to the brightscript function pattern.
Also see:
Mid(start_index as Integer) as String
vsMid(start_index as Integer, num_chars as Integer) as String
StartsWith(matchString as String) As Boolean
vsStartsWith(matchString as String, matchPos as Integer) As Boolean
EndsWith(matchString as String) As Boolean
vsEndsWith(matchString as String, length as Integer) As Boolean
In these cases, the 2nd param can basically be thought of as optional