summaryrefslogtreecommitdiff
path: root/test/prism/snapshots/whitequark/heredoc.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/prism/snapshots/whitequark/heredoc.txt')
-rw-r--r--test/prism/snapshots/whitequark/heredoc.txt23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/prism/snapshots/whitequark/heredoc.txt b/test/prism/snapshots/whitequark/heredoc.txt
new file mode 100644
index 0000000000..86543097ee
--- /dev/null
+++ b/test/prism/snapshots/whitequark/heredoc.txt
@@ -0,0 +1,23 @@
+@ ProgramNode (location: (1,0)-(11,8))
+├── locals: []
+└── statements:
+ @ StatementsNode (location: (1,0)-(11,8))
+ └── body: (length: 3)
+ ├── @ StringNode (location: (1,0)-(1,8))
+ │ ├── flags: ∅
+ │ ├── opening_loc: (1,0)-(1,8) = "<<'HERE'"
+ │ ├── content_loc: (2,0)-(4,0) = "foo\nbar\n"
+ │ ├── closing_loc: (4,0)-(5,0) = "HERE\n"
+ │ └── unescaped: "foo\nbar\n"
+ ├── @ StringNode (location: (6,0)-(6,6))
+ │ ├── flags: ∅
+ │ ├── opening_loc: (6,0)-(6,6) = "<<HERE"
+ │ ├── content_loc: (7,0)-(9,0) = "foo\nbar\n"
+ │ ├── closing_loc: (9,0)-(10,0) = "HERE\n"
+ │ └── unescaped: "foo\nbar\n"
+ └── @ XStringNode (location: (11,0)-(11,8))
+ ├── flags: ∅
+ ├── opening_loc: (11,0)-(11,8) = "<<`HERE`"
+ ├── content_loc: (12,0)-(14,0) = "foo\nbar\n"
+ ├── closing_loc: (14,0)-(15,0) = "HERE\n"
+ └── unescaped: "foo\nbar\n"