summaryrefslogtreecommitdiff
path: root/test/prism/snapshots/whitequark/masgn_const.txt
blob: 56169deb17b0cb8c3a20e74b150a3e0618a09810 (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
@ ProgramNode (location: (1,0)-(3,18))
├── locals: [:foo]
└── statements:
    @ StatementsNode (location: (1,0)-(3,18))
    └── body: (length: 2)
        ├── @ MultiWriteNode (location: (1,0)-(1,14))
        │   ├── lefts: (length: 2)
        │   │   ├── @ ConstantPathTargetNode (location: (1,0)-(1,3))
        │   │   │   ├── parent: ∅
        │   │   │   ├── child:
        │   │   │   │   @ ConstantReadNode (location: (1,2)-(1,3))
        │   │   │   │   └── name: :A
        │   │   │   └── delimiter_loc: (1,0)-(1,2) = "::"
        │   │   └── @ LocalVariableTargetNode (location: (1,5)-(1,8))
        │   │       ├── name: :foo
        │   │       └── depth: 0
        │   ├── rest: ∅
        │   ├── rights: (length: 0)
        │   ├── lparen_loc: ∅
        │   ├── rparen_loc: ∅
        │   ├── operator_loc: (1,9)-(1,10) = "="
        │   └── value:
        │       @ LocalVariableReadNode (location: (1,11)-(1,14))
        │       ├── name: :foo
        │       └── depth: 0
        └── @ MultiWriteNode (location: (3,0)-(3,18))
            ├── lefts: (length: 2)
            │   ├── @ ConstantPathTargetNode (location: (3,0)-(3,7))
            │   │   ├── parent:
            │   │   │   @ SelfNode (location: (3,0)-(3,4))
            │   │   ├── child:
            │   │   │   @ ConstantReadNode (location: (3,6)-(3,7))
            │   │   │   └── name: :A
            │   │   └── delimiter_loc: (3,4)-(3,6) = "::"
            │   └── @ LocalVariableTargetNode (location: (3,9)-(3,12))
            │       ├── name: :foo
            │       └── depth: 0
            ├── rest: ∅
            ├── rights: (length: 0)
            ├── lparen_loc: ∅
            ├── rparen_loc: ∅
            ├── operator_loc: (3,13)-(3,14) = "="
            └── value:
                @ LocalVariableReadNode (location: (3,15)-(3,18))
                ├── name: :foo
                └── depth: 0