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
|
@ ProgramNode (location: (1,0)-(1,12))
├── locals: [:a]
└── statements:
@ StatementsNode (location: (1,0)-(1,12))
└── body: (length: 1)
└── @ LocalVariableWriteNode (location: (1,0)-(1,12))
├── name: :a
├── depth: 0
├── name_loc: (1,0)-(1,1) = "a"
├── value:
│ @ InterpolatedStringNode (location: (1,4)-(1,12))
│ ├── opening_loc: (1,4)-(1,12) = "<<~\"EOF\""
│ ├── parts: (length: 3)
│ │ ├── @ StringNode (location: (2,0)-(3,0))
│ │ │ ├── flags: ∅
│ │ │ ├── opening_loc: ∅
│ │ │ ├── content_loc: (2,0)-(3,0) = " x\n"
│ │ │ ├── closing_loc: ∅
│ │ │ └── unescaped: "x\n"
│ │ ├── @ StringNode (location: (3,0)-(4,0))
│ │ │ ├── flags: ∅
│ │ │ ├── opening_loc: ∅
│ │ │ ├── content_loc: (3,0)-(4,0) = " y\n"
│ │ │ ├── closing_loc: ∅
│ │ │ └── unescaped: "y\n"
│ │ └── @ StringNode (location: (4,0)-(5,0))
│ │ ├── flags: ∅
│ │ ├── opening_loc: ∅
│ │ ├── content_loc: (4,0)-(5,0) = " z\n"
│ │ ├── closing_loc: ∅
│ │ └── unescaped: "z\n"
│ └── closing_loc: (5,0)-(6,0) = " EOF\n"
└── operator_loc: (1,2)-(1,3) = "="
|