You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config.yml
+35Lines changed: 35 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1555,19 +1555,54 @@ nodes:
1555
1555
- name: receiver
1556
1556
type: node?
1557
1557
kind: non-void expression
1558
+
comment: |
1559
+
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).
1560
+
1561
+
foo.bar ||= value
1562
+
^^^
1558
1563
- name: call_operator_loc
1559
1564
type: location?
1565
+
comment: |
1566
+
Represents the location of the call operator.
1567
+
1568
+
foo.bar ||= value
1569
+
^
1560
1570
- name: message_loc
1561
1571
type: location?
1572
+
comment: |
1573
+
Represents the location of the message.
1574
+
1575
+
foo.bar ||= value
1576
+
^^^
1562
1577
- name: read_name
1563
1578
type: constant
1579
+
comment: |
1580
+
Represents the name of the method being called.
1581
+
1582
+
foo.bar ||= value # read_name `:bar`
1583
+
^^^
1564
1584
- name: write_name
1565
1585
type: constant
1586
+
comment: |
1587
+
Represents the name of the method being written to.
1588
+
1589
+
foo.bar ||= value # write_name `:bar=`
1590
+
^^^
1566
1591
- name: operator_loc
1567
1592
type: location
1593
+
comment: |
1594
+
Represents the location of the operator.
1595
+
1596
+
foo.bar ||= value
1597
+
^^^
1568
1598
- name: value
1569
1599
type: node
1570
1600
kind: non-void expression
1601
+
comment: |
1602
+
Represents the value being assigned.
1603
+
1604
+
foo.bar ||= value
1605
+
^^^^^
1571
1606
comment: |
1572
1607
Represents the use of the `||=` operator on a call.
0 commit comments