diff options
Diffstat (limited to 'test/prism/snapshots/whitequark/alias_gvar.txt')
-rw-r--r-- | test/prism/snapshots/whitequark/alias_gvar.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/prism/snapshots/whitequark/alias_gvar.txt b/test/prism/snapshots/whitequark/alias_gvar.txt new file mode 100644 index 0000000000..d13f816555 --- /dev/null +++ b/test/prism/snapshots/whitequark/alias_gvar.txt @@ -0,0 +1,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" |