diff options
| author | ydah <t.yudai92@gmail.com> | 2024-12-04 02:53:43 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-12-03 19:29:38 +0000 |
| commit | 0f921cf41dc0bb6c0846988e78cef0d2dce9e871 (patch) | |
| tree | 77a2aadcf53b51f04bae1e8a92c200e5b46d3f36 | |
| parent | 8fd65cd8701cb1ebfa6d718c4f8727a9bfcd056c (diff) | |
[ruby/prism] Add document CallTargetNode fields
Partially: https://github.com/ruby/prism/issues/2123
https://github.com/ruby/prism/commit/649ef29c29
| -rw-r--r-- | prism/config.yml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/prism/config.yml b/prism/config.yml index de481bf2e8..83413b0aee 100644 --- a/prism/config.yml +++ b/prism/config.yml @@ -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. |
