[ruby/prism] Add document CapturePatternNode fields
Partially: https://github.com/ruby/prism/issues/2123 https://github.com/ruby/prism/commit/1ffd693f9b
This commit is contained in:
parent
8a228f297e
commit
5898abd084
@ -1698,11 +1698,26 @@ nodes:
|
|||||||
- name: value
|
- name: value
|
||||||
type: node
|
type: node
|
||||||
kind: pattern expression
|
kind: pattern expression
|
||||||
|
comment: |
|
||||||
|
Represents the value to capture.
|
||||||
|
|
||||||
|
foo => bar
|
||||||
|
^^^
|
||||||
- name: target
|
- name: target
|
||||||
type: node
|
type: node
|
||||||
kind: LocalVariableTargetNode
|
kind: LocalVariableTargetNode
|
||||||
|
comment: |
|
||||||
|
Represents the target of the capture.
|
||||||
|
|
||||||
|
foo => bar
|
||||||
|
^^^
|
||||||
- name: operator_loc
|
- name: operator_loc
|
||||||
type: location
|
type: location
|
||||||
|
comment: |
|
||||||
|
Represents the location of the `=>` operator.
|
||||||
|
|
||||||
|
foo => bar
|
||||||
|
^^
|
||||||
comment: |
|
comment: |
|
||||||
Represents assigning to a local variable in pattern matching.
|
Represents assigning to a local variable in pattern matching.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user