Skip to content

Eliminate isAtRootLevel and namespaceAndFunctionDepth from parser #1074

@TwitchBronBron

Description

@TwitchBronBron

isAtRootLevel and namespaceAndFunctionDepth were both added to help determine where library statements were permitted. However, we still parse them anyway, so this is just a validation reason. We should remove that unnecessary complexity from the parser, and instead enforce library statement locations in the validation cycle.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions