Debian Codegraph @

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

raw
1 @ ProgramNode (location: (1,0)-(7,3))
2 ├── locals: []
3 └── statements:
4 @ StatementsNode (location: (1,0)-(7,3))
5 └── body: (length: 2)
6 ├── @ DefNode (location: (1,0)-(3,3))
7 │ ├── name: :foo
8 │ ├── name_loc: (1,4)-(1,7) = "foo"
9 │ ├── receiver: ∅
10 │ ├── parameters:
11 │ │ @ ParametersNode (location: (1,8)-(1,20))
12 │ │ ├── requireds: (length: 1)
13 │ │ │ └── @ RequiredParameterNode (location: (1,8)-(1,16))
14 │ │ │ └── name: :argument
15 │ │ ├── optionals: (length: 0)
16 │ │ ├── rest: ∅
17 │ │ ├── posts: (length: 0)
18 │ │ ├── keywords: (length: 0)
19 │ │ ├── keyword_rest:
20 │ │ │ @ KeywordRestParameterNode (location: (1,18)-(1,20))
21 │ │ │ ├── name: ∅
22 │ │ │ ├── name_loc: ∅
23 │ │ │ └── operator_loc: (1,18)-(1,20) = "**"
24 │ │ └── block: ∅
25 │ ├── body:
26 │ │ @ StatementsNode (location: (2,2)-(2,19))
27 │ │ └── body: (length: 1)
28 │ │ └── @ CallNode (location: (2,2)-(2,19))
29 │ │ ├── flags: ∅
30 │ │ ├── receiver: ∅
31 │ │ ├── call_operator_loc: ∅
32 │ │ ├── name: :bar
33 │ │ ├── message_loc: (2,2)-(2,5) = "bar"
34 │ │ ├── opening_loc: (2,5)-(2,6) = "("
35 │ │ ├── arguments:
36 │ │ │ @ ArgumentsNode (location: (2,6)-(2,18))
37 │ │ │ ├── flags: contains_keyword_splat
38 │ │ │ └── arguments: (length: 2)
39 │ │ │ ├── @ LocalVariableReadNode (location: (2,6)-(2,14))
40 │ │ │ │ ├── name: :argument
41 │ │ │ │ └── depth: 0
42 │ │ │ └── @ KeywordHashNode (location: (2,16)-(2,18))
43 │ │ │ ├── flags: ∅
44 │ │ │ └── elements: (length: 1)
45 │ │ │ └── @ AssocSplatNode (location: (2,16)-(2,18))
46 │ │ │ ├── value: ∅
47 │ │ │ └── operator_loc: (2,16)-(2,18) = "**"
48 │ │ ├── closing_loc: (2,18)-(2,19) = ")"
49 │ │ └── block: ∅
50 │ ├── locals: [:argument, :**]
51 │ ├── locals_body_index: 2
52 │ ├── def_keyword_loc: (1,0)-(1,3) = "def"
53 │ ├── operator_loc: ∅
54 │ ├── lparen_loc: (1,7)-(1,8) = "("
55 │ ├── rparen_loc: (1,20)-(1,21) = ")"
56 │ ├── equal_loc: ∅
57 │ └── end_keyword_loc: (3,0)-(3,3) = "end"
58 └── @ DefNode (location: (5,0)-(7,3))
59 ├── name: :foo
60 ├── name_loc: (5,4)-(5,7) = "foo"
61 ├── receiver: ∅
62 ├── parameters:
63 │ @ ParametersNode (location: (5,8)-(5,19))
64 │ ├── requireds: (length: 1)
65 │ │ └── @ RequiredParameterNode (location: (5,8)-(5,16))
66 │ │ └── name: :argument
67 │ ├── optionals: (length: 0)
68 │ ├── rest:
69 │ │ @ RestParameterNode (location: (5,18)-(5,19))
70 │ │ ├── name: ∅
71 │ │ ├── name_loc: ∅
72 │ │ └── operator_loc: (5,18)-(5,19) = "*"
73 │ ├── posts: (length: 0)
74 │ ├── keywords: (length: 0)
75 │ ├── keyword_rest: ∅
76 │ └── block: ∅
77 ├── body:
78 │ @ StatementsNode (location: (6,2)-(6,18))
79 │ └── body: (length: 1)
80 │ └── @ CallNode (location: (6,2)-(6,18))
81 │ ├── flags: ∅
82 │ ├── receiver: ∅
83 │ ├── call_operator_loc: ∅
84 │ ├── name: :bar
85 │ ├── message_loc: (6,2)-(6,5) = "bar"
86 │ ├── opening_loc: (6,5)-(6,6) = "("
87 │ ├── arguments:
88 │ │ @ ArgumentsNode (location: (6,6)-(6,17))
89 │ │ ├── flags: ∅
90 │ │ └── arguments: (length: 2)
91 │ │ ├── @ LocalVariableReadNode (location: (6,6)-(6,14))
92 │ │ │ ├── name: :argument
93 │ │ │ └── depth: 0
94 │ │ └── @ SplatNode (location: (6,16)-(6,17))
95 │ │ ├── operator_loc: (6,16)-(6,17) = "*"
96 │ │ └── expression: ∅
97 │ ├── closing_loc: (6,17)-(6,18) = ")"
98 │ └── block: ∅
99 ├── locals: [:argument, :*]
100 ├── locals_body_index: 2
101 ├── def_keyword_loc: (5,0)-(5,3) = "def"
102 ├── operator_loc: ∅
103 ├── lparen_loc: (5,7)-(5,8) = "("
104 ├── rparen_loc: (5,19)-(5,20) = ")"
105 ├── equal_loc: ∅
106 └── end_keyword_loc: (7,0)-(7,3) = "end"