Skip to content

Commit a1888c8

Browse files
authored
Merge pull request #3284 from ydah/doc-capture-ptn
Add document CapturePatternNode fields
2 parents ee69a87 + 1ffd693 commit a1888c8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

config.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1698,11 +1698,26 @@ nodes:
16981698
- name: value
16991699
type: node
17001700
kind: pattern expression
1701+
comment: |
1702+
Represents the value to capture.
1703+
1704+
foo => bar
1705+
^^^
17011706
- name: target
17021707
type: node
17031708
kind: LocalVariableTargetNode
1709+
comment: |
1710+
Represents the target of the capture.
1711+
1712+
foo => bar
1713+
^^^
17041714
- name: operator_loc
17051715
type: location
1716+
comment: |
1717+
Represents the location of the `=>` operator.
1718+
1719+
foo => bar
1720+
^^
17061721
comment: |
17071722
Represents assigning to a local variable in pattern matching.
17081723

0 commit comments

Comments
 (0)