blob: f70198aac1fa30bce014d4c2fbc12caff88f76ca (
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
66
|
@ ProgramNode (location: (0...20))
├── locals: []
└── statements:
@ StatementsNode (location: (0...20))
└── body: (length: 2)
├── @ IfNode (location: (0...13))
│ ├── if_keyword_loc: ∅
│ ├── predicate:
│ │ @ IntegerNode (location: (0...1))
│ │ └── flags: decimal
│ ├── statements:
│ │ @ StatementsNode (location: (4...9))
│ │ └── body: (length: 1)
│ │ └── @ CallNode (location: (4...9))
│ │ ├── receiver: ∅
│ │ ├── call_operator_loc: ∅
│ │ ├── message_loc: (4...5) = "b"
│ │ ├── opening_loc: (5...6) = "("
│ │ ├── arguments:
│ │ │ @ ArgumentsNode (location: (6...8))
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ StringNode (location: (6...8))
│ │ │ ├── flags: ∅
│ │ │ ├── opening_loc: (6...7) = "'"
│ │ │ ├── content_loc: (7...7) = ""
│ │ │ ├── closing_loc: (7...8) = "'"
│ │ │ └── unescaped: ""
│ │ ├── closing_loc: (8...9) = ")"
│ │ ├── block: ∅
│ │ ├── flags: ∅
│ │ └── name: "b"
│ ├── consequent:
│ │ @ ElseNode (location: (10...13))
│ │ ├── else_keyword_loc: (10...11) = ":"
│ │ ├── statements:
│ │ │ @ StatementsNode (location: (12...13))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (12...13))
│ │ │ └── flags: decimal
│ │ └── end_keyword_loc: ∅
│ └── end_keyword_loc: ∅
└── @ CallNode (location: (14...20))
├── receiver: ∅
├── call_operator_loc: ∅
├── message_loc: (14...15) = "a"
├── opening_loc: ∅
├── arguments:
│ @ ArgumentsNode (location: (16...20))
│ └── arguments: (length: 1)
│ └── @ KeywordHashNode (location: (16...20))
│ └── elements: (length: 1)
│ └── @ AssocNode (location: (16...20))
│ ├── key:
│ │ @ SymbolNode (location: (16...18))
│ │ ├── opening_loc: ∅
│ │ ├── value_loc: (16...17) = "d"
│ │ ├── closing_loc: (17...18) = ":"
│ │ └── unescaped: "d"
│ ├── value:
│ │ @ IntegerNode (location: (19...20))
│ │ └── flags: decimal
│ └── operator_loc: ∅
├── closing_loc: ∅
├── block: ∅
├── flags: ∅
└── name: "a"
|