Skip to content

Commit

Permalink
Add document CallTargetNode fields
Browse files Browse the repository at this point in the history
Partially: #2123
  • Loading branch information
ydah committed Dec 3, 2024
1 parent 3167699 commit 649ef29
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1579,12 +1579,32 @@ nodes:
- name: receiver
type: node
kind: non-void expression
comment: |
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).
foo.bar = 1
^^^
- name: call_operator_loc
type: location
comment: |
Represents the location of the call operator.
foo.bar = 1
^
- name: name
type: constant
comment: |
Represents the name of the method being called.
foo.bar = 1 # name `:foo`
^^^
- name: message_loc
type: location
comment: |
Represents the location of the message.
foo.bar = 1
^^^
comment: |
Represents assigning to a method call.
Expand Down

0 comments on commit 649ef29

Please sign in to comment.