Skip to content

Commit 2c4429d

Browse files
authored
Merge pull request #3257 from ydah/doc-block-params
Add document BlockParametersNode fields
2 parents e508a9f + 75d1bde commit 2c4429d

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

config.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,13 +1172,49 @@ nodes:
11721172
- name: parameters
11731173
type: node?
11741174
kind: ParametersNode
1175+
comment: |
1176+
Represents the parameters of the block.
1177+
1178+
-> (a, b = 1; local) { }
1179+
^^^^^^^^
1180+
1181+
foo do |a, b = 1; local|
1182+
^^^^^^^^
1183+
end
11751184
- name: locals
11761185
type: node[]
11771186
kind: BlockLocalVariableNode
1187+
comment: |
1188+
Represents the local variables of the block.
1189+
1190+
-> (a, b = 1; local) { }
1191+
^^^^^
1192+
1193+
foo do |a, b = 1; local|
1194+
^^^^^
1195+
end
11781196
- name: opening_loc
11791197
type: location?
1198+
comment: |
1199+
Represents the opening location of the block parameters.
1200+
1201+
-> (a, b = 1; local) { }
1202+
^
1203+
1204+
foo do |a, b = 1; local|
1205+
^
1206+
end
11801207
- name: closing_loc
11811208
type: location?
1209+
comment: |
1210+
Represents the closing location of the block parameters.
1211+
1212+
-> (a, b = 1; local) { }
1213+
^
1214+
1215+
foo do |a, b = 1; local|
1216+
^
1217+
end
11821218
comment: |
11831219
Represents a block's parameters declaration.
11841220

0 commit comments

Comments
 (0)