Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Missing ... information #306

Closed
Closed
@vjeux

Description

@vjeux

What version of typescript-eslint-parser are you using?
32634f1

What code were you trying to parse?

function test([first, ...rest]) {}

What did you expect to happen?
Have a way to find out that rest has .... In flow/babylon they wrap it in a RestElement.

What happened?

No difference in the ast from first.

          "elements": [
            {
              "type": "Identifier",
              "range": [
                15,
                20
              ],
              "loc": {
                "start": {
                  "line": 1,
                  "column": 15
                },
                "end": {
                  "line": 1,
                  "column": 20
                }
              },
              "name": "first"
            },
            {
              "type": "Identifier",
              "range": [
                25,
                29
              ],
              "loc": {
                "start": {
                  "line": 1,
                  "column": 25
                },
                "end": {
                  "line": 1,
                  "column": 29
                }
              },
              "name": "rest"
            }
          ]

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions