blob: 06dbf3b213b3cba85c1381d6773be2ead73669d8 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
@ ProgramNode (location: (0...37))
├── locals: []
└── statements:
@ StatementsNode (location: (0...37))
└── body: (length: 1)
└── @ CaseNode (location: (0...37))
├── predicate:
│ @ SymbolNode (location: (5...7))
│ ├── opening_loc: (5...6) = ":"
│ ├── value_loc: (6...7) = "a"
│ ├── closing_loc: ∅
│ └── unescaped: "a"
├── conditions: (length: 2)
│ ├── @ InNode (location: (8...20))
│ │ ├── pattern:
│ │ │ @ ConstantPathNode (location: (11...15))
│ │ │ ├── parent:
│ │ │ │ @ ConstantReadNode (location: (11...12))
│ │ │ │ └── name: :A
│ │ │ ├── child:
│ │ │ │ @ ConstantReadNode (location: (14...15))
│ │ │ │ └── name: :B
│ │ │ └── delimiter_loc: (12...14) = "::"
│ │ ├── statements:
│ │ │ @ StatementsNode (location: (18...20))
│ │ │ └── body: (length: 1)
│ │ │ └── @ SymbolNode (location: (18...20))
│ │ │ ├── opening_loc: (18...19) = ":"
│ │ │ ├── value_loc: (19...20) = "C"
│ │ │ ├── closing_loc: ∅
│ │ │ └── unescaped: "C"
│ │ ├── in_loc: (8...10) = "in"
│ │ └── then_loc: ∅
│ └── @ InNode (location: (21...33))
│ ├── pattern:
│ │ @ ConstantPathNode (location: (24...28))
│ │ ├── parent:
│ │ │ @ ConstantReadNode (location: (24...25))
│ │ │ └── name: :D
│ │ ├── child:
│ │ │ @ ConstantReadNode (location: (27...28))
│ │ │ └── name: :E
│ │ └── delimiter_loc: (25...27) = "::"
│ ├── statements:
│ │ @ StatementsNode (location: (31...33))
│ │ └── body: (length: 1)
│ │ └── @ SymbolNode (location: (31...33))
│ │ ├── opening_loc: (31...32) = ":"
│ │ ├── value_loc: (32...33) = "F"
│ │ ├── closing_loc: ∅
│ │ └── unescaped: "F"
│ ├── in_loc: (21...23) = "in"
│ └── then_loc: ∅
├── consequent: ∅
├── case_keyword_loc: (0...4) = "case"
└── end_keyword_loc: (34...37) = "end"
|