Skip to content

Commit 557d67c

Browse files
authored
Merge pull request #3256 from ydah/doc-block-param
Add document BlockParameterNode fields
2 parents 2c4429d + 480897e commit 557d67c

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)