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
45
46
47
48
49
50
51
52
|
@ ProgramNode (location: (1,0)-(7,5))
├── locals: []
└── statements:
@ StatementsNode (location: (1,0)-(7,5))
└── body: (length: 4)
├── @ XStringNode (location: (1,0)-(1,7))
│ ├── opening_loc: (1,0)-(1,3) = "%x["
│ ├── content_loc: (1,3)-(1,6) = "foo"
│ ├── closing_loc: (1,6)-(1,7) = "]"
│ └── unescaped: "foo"
├── @ InterpolatedXStringNode (location: (3,0)-(3,16))
│ ├── opening_loc: (3,0)-(3,1) = "`"
│ ├── parts: (length: 3)
│ │ ├── @ StringNode (location: (3,1)-(3,5))
│ │ │ ├── flags: ∅
│ │ │ ├── opening_loc: ∅
│ │ │ ├── content_loc: (3,1)-(3,5) = "foo "
│ │ │ ├── closing_loc: ∅
│ │ │ └── unescaped: "foo "
│ │ ├── @ EmbeddedStatementsNode (location: (3,5)-(3,11))
│ │ │ ├── opening_loc: (3,5)-(3,7) = "\#{"
│ │ │ ├── statements:
│ │ │ │ @ StatementsNode (location: (3,7)-(3,10))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ CallNode (location: (3,7)-(3,10))
│ │ │ │ ├── receiver: ∅
│ │ │ │ ├── call_operator_loc: ∅
│ │ │ │ ├── message_loc: (3,7)-(3,10) = "bar"
│ │ │ │ ├── opening_loc: ∅
│ │ │ │ ├── arguments: ∅
│ │ │ │ ├── closing_loc: ∅
│ │ │ │ ├── block: ∅
│ │ │ │ ├── flags: variable_call
│ │ │ │ └── name: "bar"
│ │ │ └── closing_loc: (3,10)-(3,11) = "}"
│ │ └── @ StringNode (location: (3,11)-(3,15))
│ │ ├── flags: ∅
│ │ ├── opening_loc: ∅
│ │ ├── content_loc: (3,11)-(3,15) = " baz"
│ │ ├── closing_loc: ∅
│ │ └── unescaped: " baz"
│ └── closing_loc: (3,15)-(3,16) = "`"
├── @ XStringNode (location: (5,0)-(5,6))
│ ├── opening_loc: (5,0)-(5,1) = "`"
│ ├── content_loc: (5,1)-(5,5) = "f\\oo"
│ ├── closing_loc: (5,5)-(5,6) = "`"
│ └── unescaped: "foo"
└── @ XStringNode (location: (7,0)-(7,5))
├── opening_loc: (7,0)-(7,1) = "`"
├── content_loc: (7,1)-(7,4) = "foo"
├── closing_loc: (7,4)-(7,5) = "`"
└── unescaped: "foo"
|