Skip to content

Commit

Permalink
Add document ArrayPatternNode fields
Browse files Browse the repository at this point in the history
Partially fixes: #2123
  • Loading branch information
ydah committed Nov 28, 2024
1 parent 93c0474 commit 396c6d4
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -977,16 +977,41 @@ nodes:
- name: requireds
type: node[]
kind: pattern expression
comment: |
Represents the required elements of the array pattern.
foo in [1, 2]
^ ^
- name: rest
type: node?
kind: pattern expression
comment: |
Represents the rest element of the array pattern.
foo in *bar
^^^^
- name: posts
type: node[]
kind: pattern expression
comment: |
Represents the elements after the rest element of the array pattern.
foo in *bar, baz
^^^
- name: opening_loc
type: location?
comment: |
Represents the opening location of the array pattern.
foo in [1, 2]
^
- name: closing_loc
type: location?
comment: |
Represents the closing location of the array pattern.
foo in [1, 2]
^
comment: |
Represents an array pattern in pattern matching.
Expand Down

0 comments on commit 396c6d4

Please sign in to comment.