diff options
Diffstat (limited to 'test/prism/snapshots/seattlerb/bug_case_when_regexp.txt')
-rw-r--r-- | test/prism/snapshots/seattlerb/bug_case_when_regexp.txt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/prism/snapshots/seattlerb/bug_case_when_regexp.txt b/test/prism/snapshots/seattlerb/bug_case_when_regexp.txt new file mode 100644 index 0000000000..0cc1ca05e1 --- /dev/null +++ b/test/prism/snapshots/seattlerb/bug_case_when_regexp.txt @@ -0,0 +1,28 @@ +@ ProgramNode (location: (1,0)-(1,26)) +├── locals: [] +└── statements: + @ StatementsNode (location: (1,0)-(1,26)) + └── body: (length: 1) + └── @ CaseNode (location: (1,0)-(1,26)) + ├── predicate: + │ @ SymbolNode (location: (1,5)-(1,7)) + │ ├── flags: forced_us_ascii_encoding + │ ├── opening_loc: (1,5)-(1,6) = ":" + │ ├── value_loc: (1,6)-(1,7) = "x" + │ ├── closing_loc: ∅ + │ └── unescaped: "x" + ├── conditions: (length: 1) + │ └── @ WhenNode (location: (1,9)-(1,22)) + │ ├── keyword_loc: (1,9)-(1,13) = "when" + │ ├── conditions: (length: 1) + │ │ └── @ RegularExpressionNode (location: (1,14)-(1,17)) + │ │ ├── flags: forced_us_ascii_encoding + │ │ ├── opening_loc: (1,14)-(1,15) = "/" + │ │ ├── content_loc: (1,15)-(1,16) = "x" + │ │ ├── closing_loc: (1,16)-(1,17) = "/" + │ │ └── unescaped: "x" + │ ├── then_keyword_loc: (1,18)-(1,22) = "then" + │ └── statements: ∅ + ├── consequent: ∅ + ├── case_keyword_loc: (1,0)-(1,4) = "case" + └── end_keyword_loc: (1,23)-(1,26) = "end" |