Skip to content

Concise methods node #5

Closed
Closed
@nzakas

Description

@nzakas

Esprima currently represents concise methods as Property whose value is a FunctionExpression. This is pretty confusing because ES5 style properties with function values are represented the same way. Even though the method flag is true, that still means the FunctionExpression node represents different syntax in each situation, and that can cause errors such as eslint/eslint#1677

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions