Skip to content

Commit 480897e

Browse files
committed
Add document BlockParameterNode fields
Partially fixes: #2123
1 parent 93c0474 commit 480897e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

config.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,10 +1157,27 @@ nodes:
11571157
fields:
11581158
- name: name
11591159
type: constant?
1160+
comment: |
1161+
The name of the block parameter.
1162+
1163+
def a(&b) # name `:b`
1164+
^
1165+
end
11601166
- name: name_loc
11611167
type: location?
1168+
comment: |
1169+
Represents the location of the block parameter name.
1170+
1171+
def a(&b)
1172+
^
11621173
- name: operator_loc
11631174
type: location
1175+
comment: |
1176+
Represents the location of the `&` operator.
1177+
1178+
def a(&b)
1179+
^
1180+
end
11641181
comment: |
11651182
Represents a block parameter of a method, block, or lambda definition.
11661183

0 commit comments

Comments
 (0)