summaryrefslogtreecommitdiff
path: root/test/prism/snapshots/heredoc_with_escaped_newline_at_start.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/prism/snapshots/heredoc_with_escaped_newline_at_start.txt')
-rw-r--r--test/prism/snapshots/heredoc_with_escaped_newline_at_start.txt67
1 files changed, 67 insertions, 0 deletions
diff --git a/test/prism/snapshots/heredoc_with_escaped_newline_at_start.txt b/test/prism/snapshots/heredoc_with_escaped_newline_at_start.txt
new file mode 100644
index 0000000000..acc6b082fc
--- /dev/null
+++ b/test/prism/snapshots/heredoc_with_escaped_newline_at_start.txt
@@ -0,0 +1,67 @@
+@ ProgramNode (location: (1,0)-(5,25))
+├── locals: []
+└── statements:
+ @ StatementsNode (location: (1,0)-(5,25))
+ └── body: (length: 2)
+ ├── @ CallNode (location: (1,0)-(1,25))
+ │ ├── flags: ∅
+ │ ├── receiver:
+ │ │ @ StringNode (location: (1,0)-(1,9))
+ │ │ ├── flags: ∅
+ │ │ ├── opening_loc: (1,0)-(1,9) = "<<-TARGET"
+ │ │ ├── content_loc: (2,0)-(2,0) = ""
+ │ │ ├── closing_loc: (2,0)-(3,0) = "TARGET\n"
+ │ │ └── unescaped: ""
+ │ ├── call_operator_loc: (1,9)-(1,10) = "."
+ │ ├── name: :gsub
+ │ ├── message_loc: (1,10)-(1,14) = "gsub"
+ │ ├── opening_loc: ∅
+ │ ├── arguments:
+ │ │ @ ArgumentsNode (location: (1,15)-(1,25))
+ │ │ ├── flags: ∅
+ │ │ └── arguments: (length: 2)
+ │ │ ├── @ RegularExpressionNode (location: (1,15)-(1,21))
+ │ │ │ ├── flags: forced_us_ascii_encoding
+ │ │ │ ├── opening_loc: (1,15)-(1,16) = "/"
+ │ │ │ ├── content_loc: (1,16)-(1,20) = "^\\s{"
+ │ │ │ ├── closing_loc: (1,20)-(1,21) = "/"
+ │ │ │ └── unescaped: "^\\s{"
+ │ │ └── @ StringNode (location: (1,23)-(1,25))
+ │ │ ├── flags: ∅
+ │ │ ├── opening_loc: (1,23)-(1,24) = "'"
+ │ │ ├── content_loc: (1,24)-(1,24) = ""
+ │ │ ├── closing_loc: (1,24)-(1,25) = "'"
+ │ │ └── unescaped: ""
+ │ ├── closing_loc: ∅
+ │ └── block: ∅
+ └── @ CallNode (location: (5,0)-(5,25))
+ ├── flags: ∅
+ ├── receiver:
+ │ @ StringNode (location: (5,0)-(5,9))
+ │ ├── flags: ∅
+ │ ├── opening_loc: (5,0)-(5,9) = "<<-TARGET"
+ │ ├── content_loc: (6,0)-(6,0) = ""
+ │ ├── closing_loc: (6,0)-(7,0) = "TARGET\r\n"
+ │ └── unescaped: ""
+ ├── call_operator_loc: (5,9)-(5,10) = "."
+ ├── name: :gsub
+ ├── message_loc: (5,10)-(5,14) = "gsub"
+ ├── opening_loc: ∅
+ ├── arguments:
+ │ @ ArgumentsNode (location: (5,15)-(5,25))
+ │ ├── flags: ∅
+ │ └── arguments: (length: 2)
+ │ ├── @ RegularExpressionNode (location: (5,15)-(5,21))
+ │ │ ├── flags: forced_us_ascii_encoding
+ │ │ ├── opening_loc: (5,15)-(5,16) = "/"
+ │ │ ├── content_loc: (5,16)-(5,20) = "^\\s{"
+ │ │ ├── closing_loc: (5,20)-(5,21) = "/"
+ │ │ └── unescaped: "^\\s{"
+ │ └── @ StringNode (location: (5,23)-(5,25))
+ │ ├── flags: ∅
+ │ ├── opening_loc: (5,23)-(5,24) = "'"
+ │ ├── content_loc: (5,24)-(5,24) = ""
+ │ ├── closing_loc: (5,24)-(5,25) = "'"
+ │ └── unescaped: ""
+ ├── closing_loc: ∅
+ └── block: ∅