summaryrefslogtreecommitdiff
path: root/test/prism/snapshots/whitequark/alias_gvar.txt
blob: d13f816555891b26e425220dcb967b1251369247 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@ ProgramNode (location: (1,0)-(3,11))
├── locals: []
└── statements:
    @ StatementsNode (location: (1,0)-(3,11))
    └── body: (length: 2)
        ├── @ AliasGlobalVariableNode (location: (1,0)-(1,11))
        │   ├── new_name:
        │   │   @ GlobalVariableReadNode (location: (1,6)-(1,8))
        │   │   └── name: :$a
        │   ├── old_name:
        │   │   @ BackReferenceReadNode (location: (1,9)-(1,11))
        │   │   └── name: :$+
        │   └── keyword_loc: (1,0)-(1,5) = "alias"
        └── @ AliasGlobalVariableNode (location: (3,0)-(3,11))
            ├── new_name:
            │   @ GlobalVariableReadNode (location: (3,6)-(3,8))
            │   └── name: :$a
            ├── old_name:
            │   @ GlobalVariableReadNode (location: (3,9)-(3,11))
            │   └── name: :$b
            └── keyword_loc: (3,0)-(3,5) = "alias"