summaryrefslogtreecommitdiff
path: root/test/prism/snapshots/seattlerb/bug_case_when_regexp.txt
blob: 0cc1ca05e1f2477468c62f53e7834909c8570279 (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
@ 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"