blob: c7d996727959a0ee33cfd28f13b1017e667d4ad8 (
plain)
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: (0...40))
├── locals: []
└── statements:
@ StatementsNode (location: (0...40))
└── body: (length: 4)
├── @ XStringNode (location: (0...7))
│ ├── opening_loc: (0...3) = "%x["
│ ├── content_loc: (3...6) = "foo"
│ ├── closing_loc: (6...7) = "]"
│ └── unescaped: "foo"
├── @ InterpolatedXStringNode (location: (9...25))
│ ├── opening_loc: (9...10) = "`"
│ ├── parts: (length: 3)
│ │ ├── @ StringNode (location: (10...14))
│ │ │ ├── flags: ∅
│ │ │ ├── opening_loc: ∅
│ │ │ ├── content_loc: (10...14) = "foo "
│ │ │ ├── closing_loc: ∅
│ │ │ └── unescaped: "foo "
│ │ ├── @ EmbeddedStatementsNode (location: (14...20))
│ │ │ ├── opening_loc: (14...16) = "\#{"
│ │ │ ├── statements:
│ │ │ │ @ StatementsNode (location: (16...19))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ CallNode (location: (16...19))
│ │ │ │ ├── receiver: ∅
│ │ │ │ ├── call_operator_loc: ∅
│ │ │ │ ├── message_loc: (16...19) = "bar"
│ │ │ │ ├── opening_loc: ∅
│ │ │ │ ├── arguments: ∅
│ │ │ │ ├── closing_loc: ∅
│ │ │ │ ├── block: ∅
│ │ │ │ ├── flags: variable_call
│ │ │ │ └── name: "bar"
│ │ │ └── closing_loc: (19...20) = "}"
│ │ └── @ StringNode (location: (20...24))
│ │ ├── flags: ∅
│ │ ├── opening_loc: ∅
│ │ ├── content_loc: (20...24) = " baz"
│ │ ├── closing_loc: ∅
│ │ └── unescaped: " baz"
│ └── closing_loc: (24...25) = "`"
├── @ XStringNode (location: (27...33))
│ ├── opening_loc: (27...28) = "`"
│ ├── content_loc: (28...32) = "f\\oo"
│ ├── closing_loc: (32...33) = "`"
│ └── unescaped: "foo"
└── @ XStringNode (location: (35...40))
├── opening_loc: (35...36) = "`"
├── content_loc: (36...39) = "foo"
├── closing_loc: (39...40) = "`"
└── unescaped: "foo"
|