diff options
Diffstat (limited to 'test/prism/snapshots/xstring.txt')
-rw-r--r-- | test/prism/snapshots/xstring.txt | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/test/prism/snapshots/xstring.txt b/test/prism/snapshots/xstring.txt new file mode 100644 index 0000000000..1a177026db --- /dev/null +++ b/test/prism/snapshots/xstring.txt @@ -0,0 +1,67 @@ +@ ProgramNode (location: (1,0)-(13,4)) +├── locals: [] +└── statements: + @ StatementsNode (location: (1,0)-(13,4)) + └── body: (length: 6) + ├── @ XStringNode (location: (1,0)-(1,7)) + │ ├── flags: ∅ + │ ├── opening_loc: (1,0)-(1,3) = "%x[" + │ ├── content_loc: (1,3)-(1,6) = "foo" + │ ├── closing_loc: (1,6)-(1,7) = "]" + │ └── unescaped: "foo" + ├── @ InterpolatedXStringNode (location: (3,0)-(3,16)) + │ ├── opening_loc: (3,0)-(3,1) = "`" + │ ├── parts: (length: 3) + │ │ ├── @ StringNode (location: (3,1)-(3,5)) + │ │ │ ├── flags: frozen + │ │ │ ├── opening_loc: ∅ + │ │ │ ├── content_loc: (3,1)-(3,5) = "foo " + │ │ │ ├── closing_loc: ∅ + │ │ │ └── unescaped: "foo " + │ │ ├── @ EmbeddedStatementsNode (location: (3,5)-(3,11)) + │ │ │ ├── opening_loc: (3,5)-(3,7) = "\#{" + │ │ │ ├── statements: + │ │ │ │ @ StatementsNode (location: (3,7)-(3,10)) + │ │ │ │ └── body: (length: 1) + │ │ │ │ └── @ CallNode (location: (3,7)-(3,10)) + │ │ │ │ ├── flags: variable_call, ignore_visibility + │ │ │ │ ├── receiver: ∅ + │ │ │ │ ├── call_operator_loc: ∅ + │ │ │ │ ├── name: :bar + │ │ │ │ ├── message_loc: (3,7)-(3,10) = "bar" + │ │ │ │ ├── opening_loc: ∅ + │ │ │ │ ├── arguments: ∅ + │ │ │ │ ├── closing_loc: ∅ + │ │ │ │ └── block: ∅ + │ │ │ └── closing_loc: (3,10)-(3,11) = "}" + │ │ └── @ StringNode (location: (3,11)-(3,15)) + │ │ ├── flags: frozen + │ │ ├── opening_loc: ∅ + │ │ ├── content_loc: (3,11)-(3,15) = " baz" + │ │ ├── closing_loc: ∅ + │ │ └── unescaped: " baz" + │ └── closing_loc: (3,15)-(3,16) = "`" + ├── @ XStringNode (location: (5,0)-(5,5)) + │ ├── flags: ∅ + │ ├── opening_loc: (5,0)-(5,1) = "`" + │ ├── content_loc: (5,1)-(5,4) = "foo" + │ ├── closing_loc: (5,4)-(5,5) = "`" + │ └── unescaped: "foo" + ├── @ XStringNode (location: (7,0)-(9,1)) + │ ├── flags: ∅ + │ ├── opening_loc: (7,0)-(7,3) = "%x{" + │ ├── content_loc: (7,3)-(9,0) = "\n foo\n" + │ ├── closing_loc: (9,0)-(9,1) = "}" + │ └── unescaped: "\n foo\n" + ├── @ XStringNode (location: (11,0)-(11,2)) + │ ├── flags: ∅ + │ ├── opening_loc: (11,0)-(11,1) = "`" + │ ├── content_loc: (11,1)-(11,1) = "" + │ ├── closing_loc: (11,1)-(11,2) = "`" + │ └── unescaped: "" + └── @ XStringNode (location: (13,0)-(13,4)) + ├── flags: ∅ + ├── opening_loc: (13,0)-(13,3) = "%x{" + ├── content_loc: (13,3)-(13,3) = "" + ├── closing_loc: (13,3)-(13,4) = "}" + └── unescaped: "" |