Skip to content

Commit 4281c68

Browse files
committed
Add field documentation for PinnedVariableNode
1 parent c435ea5 commit 4281c68

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

config.yml

+13
Original file line numberDiff line numberDiff line change
@@ -3492,8 +3492,21 @@ nodes:
34923492
fields:
34933493
- name: variable
34943494
type: node
3495+
comment: |
3496+
The variable or expression used the pinned expression
3497+
3498+
foo in ^bar
3499+
^^^
3500+
3501+
foo in { timestamp: ^(Time.new(2021)..Time.new(2030)) }
3502+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34953503
- name: operator_loc
34963504
type: location
3505+
comment: |
3506+
The location of the `^` operator
3507+
3508+
foo in ^bar
3509+
^
34973510
comment: |
34983511
Represents the use of the `^` operator for pinning a variable in a pattern matching expression.
34993512

0 commit comments

Comments
 (0)