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