Skip to content

Commit f871ce0

Browse files
committed
Fix type for ArrayPatternNode#rest
It can only ever be one of these two
1 parent 4e207db commit f871ce0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,9 @@ nodes:
10171017
^ ^
10181018
- name: rest
10191019
type: node?
1020-
kind: pattern expression
1020+
kind:
1021+
- ImplicitRestNode
1022+
- SplatNode
10211023
comment: |
10221024
Represents the rest element of the array pattern.
10231025

0 commit comments

Comments
 (0)