[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing error when function defined inside macro #37

Open
evgygor opened this issue Nov 26, 2018 · 1 comment
Open

Parsing error when function defined inside macro #37

evgygor opened this issue Nov 26, 2018 · 1 comment

Comments

@evgygor
Copy link
Contributor
evgygor commented Nov 26, 2018

This code block

#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

@LoriResnickPeloton
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants