summaryrefslogtreecommitdiff
path: root/test/prism/snapshots/whitequark/pattern_matching_blank_else.txt
blob: 6015c000a98714d231644c978df0d2896b3a7b27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@ ProgramNode (location: (1,0)-(1,26))
├── locals: []
└── statements:
    @ StatementsNode (location: (1,0)-(1,26))
    └── body: (length: 1)
        └── @ CaseMatchNode (location: (1,0)-(1,26))
            ├── 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,26))
            │   ├── else_keyword_loc: (1,17)-(1,21) = "else"
            │   ├── statements: ∅
            │   └── end_keyword_loc: (1,23)-(1,26) = "end"
            ├── case_keyword_loc: (1,0)-(1,4) = "case"
            └── end_keyword_loc: (1,23)-(1,26) = "end"