Skip to content

Parsing error when function defined inside macro #37

@evgygor

Description

@evgygor

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions