From 649ef29c297edd2a0bffc45330801b11fed14ebe Mon Sep 17 00:00:00 2001 From: ydah Date: Wed, 4 Dec 2024 02:53:43 +0900 Subject: [PATCH] Add document CallTargetNode fields Partially: https://github.com/ruby/prism/issues/2123 --- config.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/config.yml b/config.yml index afc3619a54..4784421f64 100644 --- a/config.yml +++ b/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.