blob: 496987c57c9efb588c8df333a37c975109a5fa80 (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
|
@ ProgramNode (location: (0...27))
├── locals: []
└── statements:
@ StatementsNode (location: (0...27))
└── body: (length: 1)
└── @ CallNode (location: (0...27))
├── receiver: ∅
├── call_operator_loc: ∅
├── message_loc: (0...3) = "foo"
├── opening_loc: ∅
├── arguments:
│ @ ArgumentsNode (location: (4...19))
│ └── arguments: (length: 1)
│ └── @ InterpolatedStringNode (location: (4...19))
│ ├── opening_loc: (4...5) = "\""
│ ├── parts: (length: 1)
│ │ └── @ EmbeddedStatementsNode (location: (5...18))
│ │ ├── opening_loc: (5...7) = "\#{"
│ │ ├── statements:
│ │ │ @ StatementsNode (location: (7...17))
│ │ │ └── body: (length: 1)
│ │ │ └── @ CallNode (location: (7...17))
│ │ │ ├── receiver:
│ │ │ │ @ ParenthesesNode (location: (7...12))
│ │ │ │ ├── body:
│ │ │ │ │ @ StatementsNode (location: (8...11))
│ │ │ │ │ └── body: (length: 1)
│ │ │ │ │ └── @ CallNode (location: (8...11))
│ │ │ │ │ ├── receiver:
│ │ │ │ │ │ @ IntegerNode (location: (8...9))
│ │ │ │ │ │ └── flags: decimal
│ │ │ │ │ ├── call_operator_loc: ∅
│ │ │ │ │ ├── message_loc: (9...10) = "+"
│ │ │ │ │ ├── opening_loc: ∅
│ │ │ │ │ ├── arguments:
│ │ │ │ │ │ @ ArgumentsNode (location: (10...11))
│ │ │ │ │ │ └── arguments: (length: 1)
│ │ │ │ │ │ └── @ IntegerNode (location: (10...11))
│ │ │ │ │ │ └── flags: decimal
│ │ │ │ │ ├── closing_loc: ∅
│ │ │ │ │ ├── block: ∅
│ │ │ │ │ ├── flags: ∅
│ │ │ │ │ └── name: "+"
│ │ │ │ ├── opening_loc: (7...8) = "("
│ │ │ │ └── closing_loc: (11...12) = ")"
│ │ │ ├── call_operator_loc: (12...13) = "."
│ │ │ ├── message_loc: (13...17) = "to_i"
│ │ │ ├── opening_loc: ∅
│ │ │ ├── arguments: ∅
│ │ │ ├── closing_loc: ∅
│ │ │ ├── block: ∅
│ │ │ ├── flags: ∅
│ │ │ └── name: "to_i"
│ │ └── closing_loc: (17...18) = "}"
│ └── closing_loc: (18...19) = "\""
├── closing_loc: ∅
├── block:
│ @ BlockNode (location: (20...27))
│ ├── locals: []
│ ├── parameters: ∅
│ ├── body: ∅
│ ├── opening_loc: (20...22) = "do"
│ └── closing_loc: (24...27) = "end"
├── flags: ∅
└── name: "foo"
|