Skip to content

ChainExpression and others are missing in espree.Syntax #531

@codeworrior

Description

@codeworrior

According to #331, the espree.Syntax object is supposed to contain all node types supported by Espree. But comparing it with espree.VisitorKeys, the following node types are missing:

  • ChainExpression
  • ImportExpression
  • JSXFragment
  • JSXOpeningFragment
  • JSXClosingFragment
  • PrivateIdentifier
  • PropertyDefinition
  • StaticBlock

ExperimentalRestProperty and ExperimentalSpreadProperty are also missing, but this might be intentional.

For sure one could derive a list of node types from the keys of VisitorKeys, but what's the purpose of the Syntax export then? Shouldn't it be used any longer?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Complete

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions