summaryrefslogtreecommitdiff
path: root/test/prism/snapshots/unparser/corpus/literal/range.txt
blob: ab015d04fce0e245f2304dfaddfc64f0e4a78efa (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
@ ProgramNode (location: (1,0)-(4,5))
├── locals: []
└── statements:
    @ StatementsNode (location: (1,0)-(4,5))
    └── body: (length: 4)
        ├── @ ParenthesesNode (location: (1,0)-(1,5))
        │   ├── body:
        │   │   @ StatementsNode (location: (1,1)-(1,4))
        │   │   └── body: (length: 1)
        │   │       └── @ RangeNode (location: (1,1)-(1,4))
        │   │           ├── flags: ∅
        │   │           ├── left:
        │   │           │   @ IntegerNode (location: (1,1)-(1,2))
        │   │           │   ├── flags: decimal
        │   │           │   └── value: 1
        │   │           ├── right: ∅
        │   │           └── operator_loc: (1,2)-(1,4) = ".."
        │   ├── opening_loc: (1,0)-(1,1) = "("
        │   └── closing_loc: (1,4)-(1,5) = ")"
        ├── @ RangeNode (location: (2,0)-(2,4))
        │   ├── flags: ∅
        │   ├── left:
        │   │   @ IntegerNode (location: (2,0)-(2,1))
        │   │   ├── flags: decimal
        │   │   └── value: 1
        │   ├── right:
        │   │   @ IntegerNode (location: (2,3)-(2,4))
        │   │   ├── flags: decimal
        │   │   └── value: 2
        │   └── operator_loc: (2,1)-(2,3) = ".."
        ├── @ ParenthesesNode (location: (3,0)-(3,6))
        │   ├── body:
        │   │   @ StatementsNode (location: (3,1)-(3,5))
        │   │   └── body: (length: 1)
        │   │       └── @ RangeNode (location: (3,1)-(3,5))
        │   │           ├── flags: exclude_end
        │   │           ├── left:
        │   │           │   @ IntegerNode (location: (3,1)-(3,2))
        │   │           │   ├── flags: decimal
        │   │           │   └── value: 1
        │   │           ├── right: ∅
        │   │           └── operator_loc: (3,2)-(3,5) = "..."
        │   ├── opening_loc: (3,0)-(3,1) = "("
        │   └── closing_loc: (3,5)-(3,6) = ")"
        └── @ RangeNode (location: (4,0)-(4,5))
            ├── flags: exclude_end
            ├── left:
            │   @ IntegerNode (location: (4,0)-(4,1))
            │   ├── flags: decimal
            │   └── value: 1
            ├── right:
            │   @ IntegerNode (location: (4,4)-(4,5))
            │   ├── flags: decimal
            │   └── value: 2
            └── operator_loc: (4,1)-(4,4) = "..."