Skip to content

Parsing of name.{ in SelectedValue #75

Closed
@glen-84

Description

SelectedValue ::
    Path
    SelectedObjectValue
    Path . SelectedObjectValue
    SelectedValue | SelectedValue

A SelectedValue of, for example, field.{ a } will begin parsing as a Path due to the Name token. After the period in a PathSegment, another PathSegment is required, but the next token will instead be a LeftBrace token.

Expected a Name-token, but found a LeftBrace-token.

Should we perform a negative lookahead when parsing a PathSegment, so that the period isn't consumed when followed by a left brace, or is there another solution here?

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