[ruby/prism] Add document CallTargetNode fields
Partially: https://github.com/ruby/prism/issues/2123 https://github.com/ruby/prism/commit/649ef29c29
This commit is contained in:
parent
8fd65cd870
commit
0f921cf41d
@ -1579,12 +1579,32 @@ nodes:
|
|||||||
- name: receiver
|
- name: receiver
|
||||||
type: node
|
type: node
|
||||||
kind: non-void expression
|
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
|
- name: call_operator_loc
|
||||||
type: location
|
type: location
|
||||||
|
comment: |
|
||||||
|
Represents the location of the call operator.
|
||||||
|
|
||||||
|
foo.bar = 1
|
||||||
|
^
|
||||||
- name: name
|
- name: name
|
||||||
type: constant
|
type: constant
|
||||||
|
comment: |
|
||||||
|
Represents the name of the method being called.
|
||||||
|
|
||||||
|
foo.bar = 1 # name `:foo`
|
||||||
|
^^^
|
||||||
- name: message_loc
|
- name: message_loc
|
||||||
type: location
|
type: location
|
||||||
|
comment: |
|
||||||
|
Represents the location of the message.
|
||||||
|
|
||||||
|
foo.bar = 1
|
||||||
|
^^^
|
||||||
comment: |
|
comment: |
|
||||||
Represents assigning to a method call.
|
Represents assigning to a method call.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user