Skip to content

Consider documenting the "location" of a node #134

Description

@bakkot

Followup to #69:

Various tools (e.g shift-parser-js) provide a way of querying the location corresponding to a node in some source text. We might consider saying what that means, at least for edge cases, such as:

  • do FormalParameters include parentheses?
  • do Programs include leading and/or trailing whitespace? what about when there are no non-whitespace tokens?
  • where do grouping parentheses go? e.g. in (a + b);, are they in the BinaryExpression or the ExpressionStatement?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions