blob: c3947c2d54b91b1fbbbc668a81cf1d6b91fd3214 (
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
@ ProgramNode (location: (0...141))
├── locals: []
└── statements:
@ StatementsNode (location: (0...141))
└── body: (length: 7)
├── @ UnlessNode (location: (0...19))
│ ├── keyword_loc: (0...6) = "unless"
│ ├── predicate:
│ │ @ TrueNode (location: (7...11))
│ ├── statements:
│ │ @ StatementsNode (location: (13...14))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (13...14))
│ │ └── flags: decimal
│ ├── consequent: ∅
│ └── end_keyword_loc: (16...19) = "end"
├── @ UnlessNode (location: (21...45))
│ ├── keyword_loc: (21...27) = "unless"
│ ├── predicate:
│ │ @ TrueNode (location: (28...32))
│ ├── statements:
│ │ @ StatementsNode (location: (33...34))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (33...34))
│ │ └── flags: decimal
│ ├── consequent:
│ │ @ ElseNode (location: (35...45))
│ │ ├── else_keyword_loc: (35...39) = "else"
│ │ ├── statements:
│ │ │ @ StatementsNode (location: (40...41))
│ │ │ └── body: (length: 1)
│ │ │ └── @ IntegerNode (location: (40...41))
│ │ │ └── flags: decimal
│ │ └── end_keyword_loc: (42...45) = "end"
│ └── end_keyword_loc: (42...45) = "end"
├── @ UnlessNode (location: (47...60))
│ ├── keyword_loc: (49...55) = "unless"
│ ├── predicate:
│ │ @ TrueNode (location: (56...60))
│ ├── statements:
│ │ @ StatementsNode (location: (47...48))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (47...48))
│ │ └── flags: decimal
│ ├── consequent: ∅
│ └── end_keyword_loc: ∅
├── @ UnlessNode (location: (62...79))
│ ├── keyword_loc: (68...74) = "unless"
│ ├── predicate:
│ │ @ TrueNode (location: (75...79))
│ ├── statements:
│ │ @ StatementsNode (location: (62...67))
│ │ └── body: (length: 1)
│ │ └── @ BreakNode (location: (62...67))
│ │ ├── arguments: ∅
│ │ └── keyword_loc: (62...67) = "break"
│ ├── consequent: ∅
│ └── end_keyword_loc: ∅
├── @ UnlessNode (location: (81...97))
│ ├── keyword_loc: (86...92) = "unless"
│ ├── predicate:
│ │ @ TrueNode (location: (93...97))
│ ├── statements:
│ │ @ StatementsNode (location: (81...85))
│ │ └── body: (length: 1)
│ │ └── @ NextNode (location: (81...85))
│ │ ├── arguments: ∅
│ │ └── keyword_loc: (81...85) = "next"
│ ├── consequent: ∅
│ └── end_keyword_loc: ∅
├── @ UnlessNode (location: (99...117))
│ ├── keyword_loc: (106...112) = "unless"
│ ├── predicate:
│ │ @ TrueNode (location: (113...117))
│ ├── statements:
│ │ @ StatementsNode (location: (99...105))
│ │ └── body: (length: 1)
│ │ └── @ ReturnNode (location: (99...105))
│ │ ├── keyword_loc: (99...105) = "return"
│ │ └── arguments: ∅
│ ├── consequent: ∅
│ └── end_keyword_loc: ∅
└── @ UnlessNode (location: (119...141))
├── keyword_loc: (130...136) = "unless"
├── predicate:
│ @ CallNode (location: (137...141))
│ ├── receiver: ∅
│ ├── call_operator_loc: ∅
│ ├── message_loc: (137...141) = "bar?"
│ ├── opening_loc: ∅
│ ├── arguments: ∅
│ ├── closing_loc: ∅
│ ├── block: ∅
│ ├── flags: ∅
│ └── name: "bar?"
├── statements:
│ @ StatementsNode (location: (119...129))
│ └── body: (length: 1)
│ └── @ CallNode (location: (119...129))
│ ├── receiver: ∅
│ ├── call_operator_loc: ∅
│ ├── message_loc: (119...122) = "foo"
│ ├── opening_loc: ∅
│ ├── arguments:
│ │ @ ArgumentsNode (location: (123...129))
│ │ └── arguments: (length: 2)
│ │ ├── @ SymbolNode (location: (123...125))
│ │ │ ├── opening_loc: (123...124) = ":"
│ │ │ ├── value_loc: (124...125) = "a"
│ │ │ ├── closing_loc: ∅
│ │ │ └── unescaped: "a"
│ │ └── @ SymbolNode (location: (127...129))
│ │ ├── opening_loc: (127...128) = ":"
│ │ ├── value_loc: (128...129) = "b"
│ │ ├── closing_loc: ∅
│ │ └── unescaped: "b"
│ ├── closing_loc: ∅
│ ├── block: ∅
│ ├── flags: ∅
│ └── name: "foo"
├── consequent: ∅
└── end_keyword_loc: ∅
|