blob: f313708b0cd057bf49d9b97b266ee17754eb0aee (
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
|
@ ProgramNode (location: (0...7))
├── locals: []
└── statements:
@ StatementsNode (location: (0...7))
└── body: (length: 1)
└── @ InterpolatedStringNode (location: (0...7))
├── opening_loc: (0...7) = "<<~RUBY"
├── parts: (length: 3)
│ ├── @ StringNode (location: (8...12))
│ │ ├── flags: ∅
│ │ ├── opening_loc: ∅
│ │ ├── content_loc: (8...12) = "pre\n"
│ │ ├── closing_loc: ∅
│ │ └── unescaped: "pre\n"
│ ├── @ EmbeddedStatementsNode (location: (12...36))
│ │ ├── opening_loc: (12...14) = "\#{"
│ │ ├── statements:
│ │ │ @ StatementsNode (location: (15...21))
│ │ │ └── body: (length: 1)
│ │ │ └── @ StringNode (location: (15...21))
│ │ │ ├── flags: ∅
│ │ │ ├── opening_loc: (15...21) = "<<RUBY"
│ │ │ ├── content_loc: (22...30) = " hello\n"
│ │ │ ├── closing_loc: (30...35) = "RUBY\n"
│ │ │ └── unescaped: " hello\n"
│ │ └── closing_loc: (35...36) = "}"
│ └── @ StringNode (location: (36...42))
│ ├── flags: ∅
│ ├── opening_loc: ∅
│ ├── content_loc: (36...42) = "\npost\n"
│ ├── closing_loc: ∅
│ └── unescaped: "\npost\n"
└── closing_loc: (42...47) = "RUBY\n"
|