Skip to content

Commit 6f0271e

Browse files
authored
Merge pull request #3277 from ydah/doc-call-tgt
Add document CallTargetNode fields
2 parents ac01680 + 649ef29 commit 6f0271e

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

config.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1579,12 +1579,32 @@ nodes:
15791579
- name: receiver
15801580
type: node
15811581
kind: non-void expression
1582+
comment: |
1583+
The object that the method is being called on. This can be any [non-void expression](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression).
1584+
1585+
foo.bar = 1
1586+
^^^
15821587
- name: call_operator_loc
15831588
type: location
1589+
comment: |
1590+
Represents the location of the call operator.
1591+
1592+
foo.bar = 1
1593+
^
15841594
- name: name
15851595
type: constant
1596+
comment: |
1597+
Represents the name of the method being called.
1598+
1599+
foo.bar = 1 # name `:foo`
1600+
^^^
15861601
- name: message_loc
15871602
type: location
1603+
comment: |
1604+
Represents the location of the message.
1605+
1606+
foo.bar = 1
1607+
^^^
15881608
comment: |
15891609
Represents assigning to a method call.
15901610

0 commit comments

Comments
 (0)