|
1 |
| -@ ProgramNode (location: (1,0)-(168,16)) |
| 1 | +@ ProgramNode (location: (1,0)-(170,18)) |
2 | 2 | ├── locals: [:a, :c, :foo]
|
3 | 3 | └── statements:
|
4 |
| - @ StatementsNode (location: (1,0)-(168,16)) |
5 |
| - └── body: (length: 62) |
| 4 | + @ StatementsNode (location: (1,0)-(170,18)) |
| 5 | + └── body: (length: 63) |
6 | 6 | ├── @ DefNode (location: (1,0)-(2,3))
|
7 | 7 | │ ├── name: :foo
|
8 | 8 | │ ├── name_loc: (1,4)-(1,7) = "foo"
|
|
1632 | 1632 | │ │ @ IntegerNode (location: (167,6)-(167,7))
|
1633 | 1633 | │ │ └── flags: decimal
|
1634 | 1634 | │ └── operator_loc: (167,4)-(167,5) = "="
|
1635 |
| - └── @ DefNode (location: (168,0)-(168,16)) |
1636 |
| - ├── name: :bar |
1637 |
| - ├── name_loc: (168,8)-(168,11) = "bar" |
1638 |
| - ├── receiver: |
1639 |
| - │ @ LocalVariableReadNode (location: (168,4)-(168,7)) |
1640 |
| - │ ├── name: :foo |
1641 |
| - │ └── depth: 0 |
1642 |
| - ├── parameters: ∅ |
1643 |
| - ├── body: ∅ |
1644 |
| - ├── locals: [] |
1645 |
| - ├── def_keyword_loc: (168,0)-(168,3) = "def" |
1646 |
| - ├── operator_loc: (168,7)-(168,8) = "." |
1647 |
| - ├── lparen_loc: ∅ |
1648 |
| - ├── rparen_loc: ∅ |
| 1635 | + ├── @ DefNode (location: (168,0)-(168,16)) |
| 1636 | + │ ├── name: :bar |
| 1637 | + │ ├── name_loc: (168,8)-(168,11) = "bar" |
| 1638 | + │ ├── receiver: |
| 1639 | + │ │ @ LocalVariableReadNode (location: (168,4)-(168,7)) |
| 1640 | + │ │ ├── name: :foo |
| 1641 | + │ │ └── depth: 0 |
| 1642 | + │ ├── parameters: ∅ |
| 1643 | + │ ├── body: ∅ |
| 1644 | + │ ├── locals: [] |
| 1645 | + │ ├── def_keyword_loc: (168,0)-(168,3) = "def" |
| 1646 | + │ ├── operator_loc: (168,7)-(168,8) = "." |
| 1647 | + │ ├── lparen_loc: ∅ |
| 1648 | + │ ├── rparen_loc: ∅ |
| 1649 | + │ ├── equal_loc: ∅ |
| 1650 | + │ └── end_keyword_loc: (168,13)-(168,16) = "end" |
| 1651 | + └── @ DefNode (location: (170,0)-(170,18)) |
| 1652 | + ├── name: :f |
| 1653 | + ├── name_loc: (170,4)-(170,5) = "f" |
| 1654 | + ├── receiver: ∅ |
| 1655 | + ├── parameters: |
| 1656 | + │ @ ParametersNode (location: (170,6)-(170,7)) |
| 1657 | + │ ├── requireds: (length: 0) |
| 1658 | + │ ├── optionals: (length: 0) |
| 1659 | + │ ├── rest: |
| 1660 | + │ │ @ RestParameterNode (location: (170,6)-(170,7)) |
| 1661 | + │ │ ├── name: ∅ |
| 1662 | + │ │ ├── name_loc: ∅ |
| 1663 | + │ │ └── operator_loc: (170,6)-(170,7) = "*" |
| 1664 | + │ ├── posts: (length: 0) |
| 1665 | + │ ├── keywords: (length: 0) |
| 1666 | + │ ├── keyword_rest: ∅ |
| 1667 | + │ └── block: ∅ |
| 1668 | + ├── body: |
| 1669 | + │ @ StatementsNode (location: (170,10)-(170,13)) |
| 1670 | + │ └── body: (length: 1) |
| 1671 | + │ └── @ ArrayNode (location: (170,10)-(170,13)) |
| 1672 | + │ ├── elements: (length: 1) |
| 1673 | + │ │ └── @ SplatNode (location: (170,11)-(170,12)) |
| 1674 | + │ │ ├── operator_loc: (170,11)-(170,12) = "*" |
| 1675 | + │ │ └── expression: ∅ |
| 1676 | + │ ├── opening_loc: (170,10)-(170,11) = "[" |
| 1677 | + │ └── closing_loc: (170,12)-(170,13) = "]" |
| 1678 | + ├── locals: [:*] |
| 1679 | + ├── def_keyword_loc: (170,0)-(170,3) = "def" |
| 1680 | + ├── operator_loc: ∅ |
| 1681 | + ├── lparen_loc: (170,5)-(170,6) = "(" |
| 1682 | + ├── rparen_loc: (170,7)-(170,8) = ")" |
1649 | 1683 | ├── equal_loc: ∅
|
1650 |
| - └── end_keyword_loc: (168,13)-(168,16) = "end" |
| 1684 | + └── end_keyword_loc: (170,15)-(170,18) = "end" |
0 commit comments