Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1555,19 +1555,54 @@ nodes:
- name: receiver
type: node?
kind: non-void expression
comment: |
The object that the method is being called on. This can be either `nil` or any [non-void expressions](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression).

foo.bar ||= value
^^^
- name: call_operator_loc
type: location?
comment: |
Represents the location of the call operator.

foo.bar ||= value
^
- name: message_loc
type: location?
comment: |
Represents the location of the message.

foo.bar ||= value
^^^
- name: read_name
type: constant
comment: |
Represents the name of the method being called.

foo.bar ||= value # read_name `:bar`
^^^
- name: write_name
type: constant
comment: |
Represents the name of the method being written to.

foo.bar ||= value # write_name `:bar=`
^^^
- name: operator_loc
type: location
comment: |
Represents the location of the operator.

foo.bar ||= value
^^^
- name: value
type: node
kind: non-void expression
comment: |
Represents the value being assigned.

foo.bar ||= value
^^^^^
comment: |
Represents the use of the `||=` operator on a call.

Expand Down
Loading