diff options
Diffstat (limited to 'test/prism/snapshots/whitequark/pattern_matching_else.txt')
-rw-r--r-- | test/prism/snapshots/whitequark/pattern_matching_else.txt | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/test/prism/snapshots/whitequark/pattern_matching_else.txt b/test/prism/snapshots/whitequark/pattern_matching_else.txt new file mode 100644 index 0000000000..7f83aafe99 --- /dev/null +++ b/test/prism/snapshots/whitequark/pattern_matching_else.txt @@ -0,0 +1,36 @@ +@ ProgramNode (location: (1,0)-(1,29)) +├── locals: [] +└── statements: + @ StatementsNode (location: (1,0)-(1,29)) + └── body: (length: 1) + └── @ CaseMatchNode (location: (1,0)-(1,29)) + ├── predicate: + │ @ IntegerNode (location: (1,5)-(1,6)) + │ ├── flags: decimal + │ └── value: 1 + ├── conditions: (length: 1) + │ └── @ InNode (location: (1,8)-(1,15)) + │ ├── pattern: + │ │ @ IntegerNode (location: (1,11)-(1,12)) + │ │ ├── flags: decimal + │ │ └── value: 2 + │ ├── statements: + │ │ @ StatementsNode (location: (1,14)-(1,15)) + │ │ └── body: (length: 1) + │ │ └── @ IntegerNode (location: (1,14)-(1,15)) + │ │ ├── flags: decimal + │ │ └── value: 3 + │ ├── in_loc: (1,8)-(1,10) = "in" + │ └── then_loc: ∅ + ├── consequent: + │ @ ElseNode (location: (1,17)-(1,29)) + │ ├── else_keyword_loc: (1,17)-(1,21) = "else" + │ ├── statements: + │ │ @ StatementsNode (location: (1,23)-(1,24)) + │ │ └── body: (length: 1) + │ │ └── @ IntegerNode (location: (1,23)-(1,24)) + │ │ ├── flags: decimal + │ │ └── value: 4 + │ └── end_keyword_loc: (1,26)-(1,29) = "end" + ├── case_keyword_loc: (1,0)-(1,4) = "case" + └── end_keyword_loc: (1,26)-(1,29) = "end" |