summaryrefslogtreecommitdiff
path: root/test/prism/snapshots/unparser/corpus/semantic/undef.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/prism/snapshots/unparser/corpus/semantic/undef.txt')
-rw-r--r--test/prism/snapshots/unparser/corpus/semantic/undef.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/prism/snapshots/unparser/corpus/semantic/undef.txt b/test/prism/snapshots/unparser/corpus/semantic/undef.txt
new file mode 100644
index 0000000000..ecb073148d
--- /dev/null
+++ b/test/prism/snapshots/unparser/corpus/semantic/undef.txt
@@ -0,0 +1,29 @@
+@ ProgramNode (location: (1,0)-(2,14))
+├── locals: []
+└── statements:
+ @ StatementsNode (location: (1,0)-(2,14))
+ └── body: (length: 2)
+ ├── @ UndefNode (location: (1,0)-(1,9))
+ │ ├── names: (length: 1)
+ │ │ └── @ SymbolNode (location: (1,6)-(1,9))
+ │ │ ├── flags: forced_us_ascii_encoding
+ │ │ ├── opening_loc: ∅
+ │ │ ├── value_loc: (1,6)-(1,9) = "foo"
+ │ │ ├── closing_loc: ∅
+ │ │ └── unescaped: "foo"
+ │ └── keyword_loc: (1,0)-(1,5) = "undef"
+ └── @ UndefNode (location: (2,0)-(2,14))
+ ├── names: (length: 2)
+ │ ├── @ SymbolNode (location: (2,6)-(2,9))
+ │ │ ├── flags: forced_us_ascii_encoding
+ │ │ ├── opening_loc: ∅
+ │ │ ├── value_loc: (2,6)-(2,9) = "foo"
+ │ │ ├── closing_loc: ∅
+ │ │ └── unescaped: "foo"
+ │ └── @ SymbolNode (location: (2,11)-(2,14))
+ │ ├── flags: forced_us_ascii_encoding
+ │ ├── opening_loc: ∅
+ │ ├── value_loc: (2,11)-(2,14) = "bar"
+ │ ├── closing_loc: ∅
+ │ └── unescaped: "bar"
+ └── keyword_loc: (2,0)-(2,5) = "undef"