Debian Codegraph @

test/prism/snapshots/unparser/corpus/literal/control.txt

raw
1 @ ProgramNode (location: (1,0)-(15,3))
2 ├── locals: []
3 └── statements:
4 @ StatementsNode (location: (1,0)-(15,3))
5 └── body: (length: 11)
6 ├── @ NextNode (location: (1,0)-(1,4))
7 │ ├── arguments: ∅
8 │ └── keyword_loc: (1,0)-(1,4) = "next"
9 ├── @ ReturnNode (location: (2,0)-(2,6))
10 │ ├── keyword_loc: (2,0)-(2,6) = "return"
11 │ └── arguments: ∅
12 ├── @ BreakNode (location: (3,0)-(3,5))
13 │ ├── arguments: ∅
14 │ └── keyword_loc: (3,0)-(3,5) = "break"
15 ├── @ RetryNode (location: (4,0)-(4,5))
16 ├── @ RedoNode (location: (5,0)-(5,4))
17 ├── @ ReturnNode (location: (6,0)-(6,8))
18 │ ├── keyword_loc: (6,0)-(6,6) = "return"
19 │ └── arguments:
20 │ @ ArgumentsNode (location: (6,7)-(6,8))
21 │ ├── flags: ∅
22 │ └── arguments: (length: 1)
23 │ └── @ IntegerNode (location: (6,7)-(6,8))
24 │ └── flags: decimal
25 ├── @ ReturnNode (location: (7,0)-(7,11))
26 │ ├── keyword_loc: (7,0)-(7,6) = "return"
27 │ └── arguments:
28 │ @ ArgumentsNode (location: (7,7)-(7,11))
29 │ ├── flags: ∅
30 │ └── arguments: (length: 2)
31 │ ├── @ IntegerNode (location: (7,7)-(7,8))
32 │ │ └── flags: decimal
33 │ └── @ IntegerNode (location: (7,10)-(7,11))
34 │ └── flags: decimal
35 ├── @ ReturnNode (location: (8,0)-(8,19))
36 │ ├── keyword_loc: (8,0)-(8,6) = "return"
37 │ └── arguments:
38 │ @ ArgumentsNode (location: (8,7)-(8,19))
39 │ ├── flags: ∅
40 │ └── arguments: (length: 1)
41 │ └── @ IfNode (location: (8,7)-(8,19))
42 │ ├── if_keyword_loc: ∅
43 │ ├── predicate:
44 │ │ @ TrueNode (location: (8,7)-(8,11))
45 │ ├── then_keyword_loc: (8,12)-(8,13) = "?"
46 │ ├── statements:
47 │ │ @ StatementsNode (location: (8,14)-(8,15))
48 │ │ └── body: (length: 1)
49 │ │ └── @ IntegerNode (location: (8,14)-(8,15))
50 │ │ └── flags: decimal
51 │ ├── consequent:
52 │ │ @ ElseNode (location: (8,16)-(8,19))
53 │ │ ├── else_keyword_loc: (8,16)-(8,17) = ":"
54 │ │ ├── statements:
55 │ │ │ @ StatementsNode (location: (8,18)-(8,19))
56 │ │ │ └── body: (length: 1)
57 │ │ │ └── @ IntegerNode (location: (8,18)-(8,19))
58 │ │ │ └── flags: decimal
59 │ │ └── end_keyword_loc: ∅
60 │ └── end_keyword_loc: ∅
61 ├── @ BreakNode (location: (9,0)-(9,18))
62 │ ├── arguments:
63 │ │ @ ArgumentsNode (location: (9,6)-(9,18))
64 │ │ ├── flags: ∅
65 │ │ └── arguments: (length: 1)
66 │ │ └── @ IfNode (location: (9,6)-(9,18))
67 │ │ ├── if_keyword_loc: ∅
68 │ │ ├── predicate:
69 │ │ │ @ TrueNode (location: (9,6)-(9,10))
70 │ │ ├── then_keyword_loc: (9,11)-(9,12) = "?"
71 │ │ ├── statements:
72 │ │ │ @ StatementsNode (location: (9,13)-(9,14))
73 │ │ │ └── body: (length: 1)
74 │ │ │ └── @ IntegerNode (location: (9,13)-(9,14))
75 │ │ │ └── flags: decimal
76 │ │ ├── consequent:
77 │ │ │ @ ElseNode (location: (9,15)-(9,18))
78 │ │ │ ├── else_keyword_loc: (9,15)-(9,16) = ":"
79 │ │ │ ├── statements:
80 │ │ │ │ @ StatementsNode (location: (9,17)-(9,18))
81 │ │ │ │ └── body: (length: 1)
82 │ │ │ │ └── @ IntegerNode (location: (9,17)-(9,18))
83 │ │ │ │ └── flags: decimal
84 │ │ │ └── end_keyword_loc: ∅
85 │ │ └── end_keyword_loc: ∅
86 │ └── keyword_loc: (9,0)-(9,5) = "break"
87 ├── @ NextNode (location: (10,0)-(10,17))
88 │ ├── arguments:
89 │ │ @ ArgumentsNode (location: (10,5)-(10,17))
90 │ │ ├── flags: ∅
91 │ │ └── arguments: (length: 1)
92 │ │ └── @ IfNode (location: (10,5)-(10,17))
93 │ │ ├── if_keyword_loc: ∅
94 │ │ ├── predicate:
95 │ │ │ @ TrueNode (location: (10,5)-(10,9))
96 │ │ ├── then_keyword_loc: (10,10)-(10,11) = "?"
97 │ │ ├── statements:
98 │ │ │ @ StatementsNode (location: (10,12)-(10,13))
99 │ │ │ └── body: (length: 1)
100 │ │ │ └── @ IntegerNode (location: (10,12)-(10,13))
101 │ │ │ └── flags: decimal
102 │ │ ├── consequent:
103 │ │ │ @ ElseNode (location: (10,14)-(10,17))
104 │ │ │ ├── else_keyword_loc: (10,14)-(10,15) = ":"
105 │ │ │ ├── statements:
106 │ │ │ │ @ StatementsNode (location: (10,16)-(10,17))
107 │ │ │ │ └── body: (length: 1)
108 │ │ │ │ └── @ IntegerNode (location: (10,16)-(10,17))
109 │ │ │ │ └── flags: decimal
110 │ │ │ └── end_keyword_loc: ∅
111 │ │ └── end_keyword_loc: ∅
112 │ └── keyword_loc: (10,0)-(10,4) = "next"
113 └── @ ReturnNode (location: (11,0)-(15,3))
114 ├── keyword_loc: (11,0)-(11,6) = "return"
115 └── arguments:
116 @ ArgumentsNode (location: (11,7)-(15,3))
117 ├── flags: ∅
118 └── arguments: (length: 2)
119 ├── @ TrueNode (location: (11,7)-(11,11))
120 └── @ IfNode (location: (11,13)-(15,3))
121 ├── if_keyword_loc: (11,13)-(11,15) = "if"
122 ├── predicate:
123 │ @ TrueNode (location: (11,16)-(11,20))
124 ├── then_keyword_loc: ∅
125 ├── statements:
126 │ @ StatementsNode (location: (12,2)-(12,3))
127 │ └── body: (length: 1)
128 │ └── @ IntegerNode (location: (12,2)-(12,3))
129 │ └── flags: decimal
130 ├── consequent:
131 │ @ ElseNode (location: (13,0)-(15,3))
132 │ ├── else_keyword_loc: (13,0)-(13,4) = "else"
133 │ ├── statements:
134 │ │ @ StatementsNode (location: (14,2)-(14,3))
135 │ │ └── body: (length: 1)
136 │ │ └── @ IntegerNode (location: (14,2)-(14,3))
137 │ │ └── flags: decimal
138 │ └── end_keyword_loc: (15,0)-(15,3) = "end"
139 └── end_keyword_loc: (15,0)-(15,3) = "end"