blob: 4b2a57e38dc7dc23859c3bb36caab8bd18dfecec (
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
|
@ ProgramNode (location: (6...88))
├── locals: [:string]
└── statements:
@ StatementsNode (location: (6...88))
└── body: (length: 2)
├── @ LocalVariableWriteNode (location: (6...31))
│ ├── name: :string
│ ├── depth: 0
│ ├── name_loc: (6...12) = "string"
│ ├── value:
│ │ @ CallNode (location: (15...31))
│ │ ├── receiver:
│ │ │ @ StringNode (location: (15...25))
│ │ │ ├── opening_loc: (15...25) = "<<-HEREDOC"
│ │ │ ├── content_loc: (32...57) = " very long string\n"
│ │ │ ├── closing_loc: (57...71) = " HEREDOC\n"
│ │ │ └── unescaped: " very long string\n"
│ │ ├── call_operator_loc: (25...26) = "."
│ │ ├── message_loc: (26...31) = "strip"
│ │ ├── opening_loc: ∅
│ │ ├── arguments: ∅
│ │ ├── closing_loc: ∅
│ │ ├── block: ∅
│ │ ├── flags:
│ │ └── name: "strip"
│ └── operator_loc: (13...14) = "="
└── @ CallNode (location: (77...88))
├── receiver: ∅
├── call_operator_loc: ∅
├── message_loc: (77...81) = "puts"
├── opening_loc: ∅
├── arguments:
│ @ ArgumentsNode (location: (82...88))
│ └── arguments: (length: 1)
│ └── @ LocalVariableReadNode (location: (82...88))
│ ├── name: :string
│ └── depth: 0
├── closing_loc: ∅
├── block: ∅
├── flags:
└── name: "puts"
|