Debian Codegraph @

test/prism/snapshots/unparser/corpus/literal/since/30.txt

raw
1 @ ProgramNode (location: (1,0)-(4,17))
2 ├── locals: [:a, :foo]
3 └── statements:
4 @ StatementsNode (location: (1,0)-(4,17))
5 └── body: (length: 4)
6 ├── @ MatchRequiredNode (location: (1,0)-(1,8))
7 │ ├── value:
8 │ │ @ IntegerNode (location: (1,0)-(1,1))
9 │ │ └── flags: decimal
10 │ ├── pattern:
11 │ │ @ ArrayPatternNode (location: (1,5)-(1,8))
12 │ │ ├── constant: ∅
13 │ │ ├── requireds: (length: 1)
14 │ │ │ └── @ LocalVariableTargetNode (location: (1,6)-(1,7))
15 │ │ │ ├── name: :a
16 │ │ │ └── depth: 0
17 │ │ ├── rest: ∅
18 │ │ ├── posts: (length: 0)
19 │ │ ├── opening_loc: (1,5)-(1,6) = "["
20 │ │ └── closing_loc: (1,7)-(1,8) = "]"
21 │ └── operator_loc: (1,2)-(1,4) = "=>"
22 ├── @ MatchRequiredNode (location: (2,0)-(2,8))
23 │ ├── value:
24 │ │ @ IntegerNode (location: (2,0)-(2,1))
25 │ │ └── flags: decimal
26 │ ├── pattern:
27 │ │ @ ArrayPatternNode (location: (2,5)-(2,8))
28 │ │ ├── constant: ∅
29 │ │ ├── requireds: (length: 0)
30 │ │ ├── rest:
31 │ │ │ @ SplatNode (location: (2,6)-(2,7))
32 │ │ │ ├── operator_loc: (2,6)-(2,7) = "*"
33 │ │ │ └── expression: ∅
34 │ │ ├── posts: (length: 0)
35 │ │ ├── opening_loc: (2,5)-(2,6) = "["
36 │ │ └── closing_loc: (2,7)-(2,8) = "]"
37 │ └── operator_loc: (2,2)-(2,4) = "=>"
38 ├── @ MatchPredicateNode (location: (3,0)-(3,15))
39 │ ├── value:
40 │ │ @ IntegerNode (location: (3,0)-(3,1))
41 │ │ └── flags: decimal
42 │ ├── pattern:
43 │ │ @ FindPatternNode (location: (3,5)-(3,15))
44 │ │ ├── constant: ∅
45 │ │ ├── left:
46 │ │ │ @ SplatNode (location: (3,6)-(3,7))
47 │ │ │ ├── operator_loc: (3,6)-(3,7) = "*"
48 │ │ │ └── expression: ∅
49 │ │ ├── requireds: (length: 1)
50 │ │ │ └── @ IntegerNode (location: (3,9)-(3,11))
51 │ │ │ └── flags: decimal
52 │ │ ├── right:
53 │ │ │ @ SplatNode (location: (3,13)-(3,14))
54 │ │ │ ├── operator_loc: (3,13)-(3,14) = "*"
55 │ │ │ └── expression: ∅
56 │ │ ├── opening_loc: (3,5)-(3,6) = "["
57 │ │ └── closing_loc: (3,14)-(3,15) = "]"
58 │ └── operator_loc: (3,2)-(3,4) = "in"
59 └── @ MatchPredicateNode (location: (4,0)-(4,17))
60 ├── value:
61 │ @ IntegerNode (location: (4,0)-(4,1))
62 │ └── flags: decimal
63 ├── pattern:
64 │ @ FindPatternNode (location: (4,5)-(4,17))
65 │ ├── constant: ∅
66 │ ├── left:
67 │ │ @ SplatNode (location: (4,6)-(4,7))
68 │ │ ├── operator_loc: (4,6)-(4,7) = "*"
69 │ │ └── expression: ∅
70 │ ├── requireds: (length: 1)
71 │ │ └── @ LocalVariableTargetNode (location: (4,9)-(4,10))
72 │ │ ├── name: :a
73 │ │ └── depth: 0
74 │ ├── right:
75 │ │ @ SplatNode (location: (4,12)-(4,16))
76 │ │ ├── operator_loc: (4,12)-(4,13) = "*"
77 │ │ └── expression:
78 │ │ @ LocalVariableTargetNode (location: (4,13)-(4,16))
79 │ │ ├── name: :foo
80 │ │ └── depth: 0
81 │ ├── opening_loc: (4,5)-(4,6) = "["
82 │ └── closing_loc: (4,16)-(4,17) = "]"
83 └── operator_loc: (4,2)-(4,4) = "in"