You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config.yml
+37Lines changed: 37 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1253,22 +1253,59 @@ nodes:
1253
1253
^^^
1254
1254
- name: call_operator_loc
1255
1255
type: location?
1256
+
comment: |
1257
+
Represents the location of the call operator.
1258
+
1259
+
foo.bar
1260
+
^
1261
+
1262
+
foo&.bar
1263
+
^^
1256
1264
- name: name
1257
1265
type: constant
1266
+
comment: |
1267
+
Represents the name of the method being called.
1268
+
1269
+
foo.bar # name `:foo`
1270
+
^^^
1258
1271
- name: message_loc
1259
1272
type: location?
1273
+
comment: |
1274
+
Represents the location of the message.
1275
+
1276
+
foo.bar
1277
+
^^^
1260
1278
- name: opening_loc
1261
1279
type: location?
1280
+
comment: |
1281
+
Represents the location of the left parenthesis.
1282
+
foo(bar)
1283
+
^
1262
1284
- name: arguments
1263
1285
type: node?
1264
1286
kind: ArgumentsNode
1287
+
comment: |
1288
+
Represents the arguments to the method call. These can be any [non-void expressions](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression).
1289
+
1290
+
foo(bar)
1291
+
^^^
1265
1292
- name: closing_loc
1266
1293
type: location?
1294
+
comment: |
1295
+
Represents the location of the right parenthesis.
1296
+
1297
+
foo(bar)
1298
+
^
1267
1299
- name: block
1268
1300
type: node?
1269
1301
kind:
1270
1302
- BlockNode
1271
1303
- BlockArgumentNode
1304
+
comment: |
1305
+
Represents the block that is being passed to the method.
1306
+
1307
+
foo { |a| a }
1308
+
^^^^^^^^^
1272
1309
comment: |
1273
1310
Represents a method call, in all of the various forms that can take.
0 commit comments