diff options
Diffstat (limited to 'test/prism/snapshots/unparser/corpus/literal/undef.txt')
-rw-r--r-- | test/prism/snapshots/unparser/corpus/literal/undef.txt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/prism/snapshots/unparser/corpus/literal/undef.txt b/test/prism/snapshots/unparser/corpus/literal/undef.txt new file mode 100644 index 0000000000..282cbe8f87 --- /dev/null +++ b/test/prism/snapshots/unparser/corpus/literal/undef.txt @@ -0,0 +1,29 @@ +@ ProgramNode (location: (1,0)-(2,16)) +├── locals: [] +└── statements: + @ StatementsNode (location: (1,0)-(2,16)) + └── body: (length: 2) + ├── @ UndefNode (location: (1,0)-(1,10)) + │ ├── names: (length: 1) + │ │ └── @ SymbolNode (location: (1,6)-(1,10)) + │ │ ├── flags: forced_us_ascii_encoding + │ │ ├── opening_loc: (1,6)-(1,7) = ":" + │ │ ├── value_loc: (1,7)-(1,10) = "foo" + │ │ ├── closing_loc: ∅ + │ │ └── unescaped: "foo" + │ └── keyword_loc: (1,0)-(1,5) = "undef" + └── @ UndefNode (location: (2,0)-(2,16)) + ├── names: (length: 2) + │ ├── @ SymbolNode (location: (2,6)-(2,10)) + │ │ ├── flags: forced_us_ascii_encoding + │ │ ├── opening_loc: (2,6)-(2,7) = ":" + │ │ ├── value_loc: (2,7)-(2,10) = "foo" + │ │ ├── closing_loc: ∅ + │ │ └── unescaped: "foo" + │ └── @ SymbolNode (location: (2,12)-(2,16)) + │ ├── flags: forced_us_ascii_encoding + │ ├── opening_loc: (2,12)-(2,13) = ":" + │ ├── value_loc: (2,13)-(2,16) = "bar" + │ ├── closing_loc: ∅ + │ └── unescaped: "bar" + └── keyword_loc: (2,0)-(2,5) = "undef" |