Debian Codegraph @

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

raw
1 @ ProgramNode (location: (1,0)-(10,17))
2 ├── locals: []
3 └── statements:
4 @ StatementsNode (location: (1,0)-(10,17))
5 └── body: (length: 10)
6 ├── @ CallNode (location: (1,0)-(1,1))
7 │ ├── flags: variable_call
8 │ ├── receiver: ∅
9 │ ├── call_operator_loc: ∅
10 │ ├── name: :a
11 │ ├── message_loc: (1,0)-(1,1) = "a"
12 │ ├── opening_loc: ∅
13 │ ├── arguments: ∅
14 │ ├── closing_loc: ∅
15 │ └── block: ∅
16 ├── @ InstanceVariableReadNode (location: (2,0)-(2,2))
17 │ └── name: :@a
18 ├── @ ClassVariableReadNode (location: (3,0)-(3,3))
19 │ └── name: :@@a
20 ├── @ GlobalVariableReadNode (location: (4,0)-(4,2))
21 │ └── name: :$a
22 ├── @ NumberedReferenceReadNode (location: (5,0)-(5,2))
23 │ └── number: 1
24 ├── @ BackReferenceReadNode (location: (6,0)-(6,2))
25 │ └── name: :$`
26 ├── @ ConstantReadNode (location: (7,0)-(7,5))
27 │ └── name: :CONST
28 ├── @ ConstantPathNode (location: (8,0)-(8,13))
29 │ ├── parent:
30 │ │ @ ConstantReadNode (location: (8,0)-(8,6))
31 │ │ └── name: :SCOPED
32 │ ├── child:
33 │ │ @ ConstantReadNode (location: (8,8)-(8,13))
34 │ │ └── name: :CONST
35 │ └── delimiter_loc: (8,6)-(8,8) = "::"
36 ├── @ ConstantPathNode (location: (9,0)-(9,10))
37 │ ├── parent: ∅
38 │ ├── child:
39 │ │ @ ConstantReadNode (location: (9,2)-(9,10))
40 │ │ └── name: :TOPLEVEL
41 │ └── delimiter_loc: (9,0)-(9,2) = "::"
42 └── @ ConstantPathNode (location: (10,0)-(10,17))
43 ├── parent:
44 │ @ ConstantPathNode (location: (10,0)-(10,10))
45 │ ├── parent: ∅
46 │ ├── child:
47 │ │ @ ConstantReadNode (location: (10,2)-(10,10))
48 │ │ └── name: :TOPLEVEL
49 │ └── delimiter_loc: (10,0)-(10,2) = "::"
50 ├── child:
51 │ @ ConstantReadNode (location: (10,12)-(10,17))
52 │ └── name: :CONST
53 └── delimiter_loc: (10,10)-(10,12) = "::"