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
|
@ ProgramNode (location: (1,0)-(5,4))
├── locals: []
└── statements:
@ StatementsNode (location: (1,0)-(5,4))
└── body: (length: 1)
└── @ CallNode (location: (1,0)-(5,4))
├── flags: ignore_visibility
├── receiver: ∅
├── call_operator_loc: ∅
├── name: :a
├── message_loc: (1,0)-(1,1) = "a"
├── opening_loc: (1,1)-(1,2) = "("
├── arguments:
│ @ ArgumentsNode (location: (1,2)-(5,3))
│ ├── flags: contains_keywords
│ └── arguments: (length: 1)
│ └── @ KeywordHashNode (location: (1,2)-(5,3))
│ ├── flags: symbol_keys
│ └── elements: (length: 1)
│ └── @ AssocNode (location: (1,2)-(5,3))
│ ├── key:
│ │ @ SymbolNode (location: (1,2)-(1,4))
│ │ ├── flags: forced_us_ascii_encoding
│ │ ├── opening_loc: ∅
│ │ ├── value_loc: (1,2)-(1,3) = "b"
│ │ ├── closing_loc: (1,3)-(1,4) = ":"
│ │ └── unescaped: "b"
│ ├── value:
│ │ @ IfNode (location: (1,5)-(5,3))
│ │ ├── if_keyword_loc: (1,5)-(1,7) = "if"
│ │ ├── predicate:
│ │ │ @ SymbolNode (location: (1,8)-(1,10))
│ │ │ ├── flags: forced_us_ascii_encoding
│ │ │ ├── opening_loc: (1,8)-(1,9) = ":"
│ │ │ ├── value_loc: (1,9)-(1,10) = "c"
│ │ │ ├── closing_loc: ∅
│ │ │ └── unescaped: "c"
│ │ ├── then_keyword_loc: ∅
│ │ ├── statements:
│ │ │ @ StatementsNode (location: (2,0)-(2,1))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (2,0)-(2,1))
│ │ │ ├── flags: decimal
│ │ │ └── value: 1
│ │ ├── consequent:
│ │ │ @ ElseNode (location: (3,0)-(5,3))
│ │ │ ├── else_keyword_loc: (3,0)-(3,4) = "else"
│ │ │ ├── statements:
│ │ │ │ @ StatementsNode (location: (4,0)-(4,1))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ IntegerNode (location: (4,0)-(4,1))
│ │ │ │ ├── flags: decimal
│ │ │ │ └── value: 2
│ │ │ └── end_keyword_loc: (5,0)-(5,3) = "end"
│ │ └── end_keyword_loc: (5,0)-(5,3) = "end"
│ └── operator_loc: ∅
├── closing_loc: (5,3)-(5,4) = ")"
└── block: ∅
|