1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
@ ProgramNode (location: (1,0)-(3,18))
├── locals: [:foo]
└── statements:
@ StatementsNode (location: (1,0)-(3,18))
└── body: (length: 2)
├── @ MultiWriteNode (location: (1,0)-(1,14))
│ ├── lefts: (length: 2)
│ │ ├── @ ConstantPathTargetNode (location: (1,0)-(1,3))
│ │ │ ├── parent: ∅
│ │ │ ├── name: :A
│ │ │ ├── delimiter_loc: (1,0)-(1,2) = "::"
│ │ │ └── name_loc: (1,2)-(1,3) = "A"
│ │ └── @ LocalVariableTargetNode (location: (1,5)-(1,8))
│ │ ├── name: :foo
│ │ └── depth: 0
│ ├── rest: ∅
│ ├── rights: (length: 0)
│ ├── lparen_loc: ∅
│ ├── rparen_loc: ∅
│ ├── operator_loc: (1,9)-(1,10) = "="
│ └── value:
│ @ LocalVariableReadNode (location: (1,11)-(1,14))
│ ├── name: :foo
│ └── depth: 0
└── @ MultiWriteNode (location: (3,0)-(3,18))
├── lefts: (length: 2)
│ ├── @ ConstantPathTargetNode (location: (3,0)-(3,7))
│ │ ├── parent:
│ │ │ @ SelfNode (location: (3,0)-(3,4))
│ │ ├── name: :A
│ │ ├── delimiter_loc: (3,4)-(3,6) = "::"
│ │ └── name_loc: (3,6)-(3,7) = "A"
│ └── @ LocalVariableTargetNode (location: (3,9)-(3,12))
│ ├── name: :foo
│ └── depth: 0
├── rest: ∅
├── rights: (length: 0)
├── lparen_loc: ∅
├── rparen_loc: ∅
├── operator_loc: (3,13)-(3,14) = "="
└── value:
@ LocalVariableReadNode (location: (3,15)-(3,18))
├── name: :foo
└── depth: 0
|