summaryrefslogtreecommitdiff
path: root/test/prism/snapshots/heredoc_with_comment.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/prism/snapshots/heredoc_with_comment.txt')
-rw-r--r--test/prism/snapshots/heredoc_with_comment.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/prism/snapshots/heredoc_with_comment.txt b/test/prism/snapshots/heredoc_with_comment.txt
new file mode 100644
index 0000000000..f2225ca981
--- /dev/null
+++ b/test/prism/snapshots/heredoc_with_comment.txt
@@ -0,0 +1,21 @@
+@ ProgramNode (location: (1,0)-(1,15))
+├── locals: []
+└── statements:
+ @ StatementsNode (location: (1,0)-(1,15))
+ └── body: (length: 1)
+ └── @ CallNode (location: (1,0)-(1,15))
+ ├── flags: ∅
+ ├── receiver:
+ │ @ StringNode (location: (1,0)-(1,9))
+ │ ├── flags: ∅
+ │ ├── opening_loc: (1,0)-(1,9) = "<<-TARGET"
+ │ ├── content_loc: (2,0)-(3,0) = " content makes for an obvious error\r\n"
+ │ ├── closing_loc: (3,0)-(3,6) = "TARGET"
+ │ └── unescaped: " content makes for an obvious error\n"
+ ├── call_operator_loc: (1,9)-(1,10) = "."
+ ├── name: :chomp
+ ├── message_loc: (1,10)-(1,15) = "chomp"
+ ├── opening_loc: ∅
+ ├── arguments: ∅
+ ├── closing_loc: ∅
+ └── block: ∅