Skip to content

User defined function in custom namespace parsed as property lookup if function name is a keyword #552

@jonaskello

Description

@jonaskello

We've encountered an issue where we name a user defined function to a keyword.

For example

myns.all()

Is parsed as a property lookup of property all on object myns. It seems this is related to ALL being a keyword. It parses correctly for all function names except when using keywords as function names.

Just wanted to check if there is a rule that you cannot name any functions within user defined namespaces to keywords or if there is a bug somewhere?

We are using antlr4 for JavaScript to do the parsing.

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