Skip to content

Commit e508a9f

Browse files
authored
Merge pull request #3258 from ydah/doc-call-and-write
Add document CallAndWriteNode fields
2 parents b7d430d + d1570f2 commit e508a9f

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

config.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,19 +1216,54 @@ nodes:
12161216
- name: receiver
12171217
type: node?
12181218
kind: non-void expression
1219+
comment: |
1220+
The object that the method is being called on. This can be either `nil` or any [non-void expression](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression).
1221+
1222+
foo.bar &&= value
1223+
^^^
12191224
- name: call_operator_loc
12201225
type: location?
1226+
comment: |
1227+
Represents the location of the call operator.
1228+
1229+
foo.bar &&= value
1230+
^
12211231
- name: message_loc
12221232
type: location?
1233+
comment: |
1234+
Represents the location of the message.
1235+
1236+
foo.bar &&= value
1237+
^^^
12231238
- name: read_name
12241239
type: constant
1240+
comment: |
1241+
Represents the name of the method being called.
1242+
1243+
foo.bar &&= value # read_name `:bar`
1244+
^^^
12251245
- name: write_name
12261246
type: constant
1247+
comment: |
1248+
Represents the name of the method being written to.
1249+
1250+
foo.bar &&= value # write_name `:bar=`
1251+
^^^
12271252
- name: operator_loc
12281253
type: location
1254+
comment: |
1255+
Represents the location of the operator.
1256+
1257+
foo.bar &&= value
1258+
^^^
12291259
- name: value
12301260
type: node
12311261
kind: non-void expression
1262+
comment: |
1263+
Represents the value being assigned.
1264+
1265+
foo.bar &&= value
1266+
^^^^^
12321267
comment: |
12331268
Represents the use of the `&&=` operator on a call.
12341269

0 commit comments

Comments
 (0)