You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#if someCondition
function foo() as object
return m
end function
#end if
Cause to "Parsing error: Expecting token of type --> END_FUNCTION <-- but found --> 'as' "
I assume eslint-plugin-roku "doesn't understand" the function's definition with parameter inside macro.
SUB definition, or function definition without return type works well
The text was updated successfully, but these errors were encountered:
Has anyone looked into this? I was able to fix the one error I got, by removing the "as void" from the function definition, but not sure what to do if I need to conditionally compile a function definition where the function returns a value.
This code block
Cause to "Parsing error: Expecting token of type --> END_FUNCTION <-- but found --> 'as' "
I assume eslint-plugin-roku "doesn't understand" the function's definition with parameter inside macro.
SUB definition, or function definition without return type works well
The text was updated successfully, but these errors were encountered: