summaryrefslogtreecommitdiff
path: root/test/prism/snapshots/whitequark/var_op_asgn_cmd.txt
blob: d56c099c7eee019b1cfd76518149f5dfd479a174 (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,12))
├── locals: [:foo]
└── statements:
    @ StatementsNode (location: (1,0)-(1,12))
    └── body: (length: 1)
        └── @ LocalVariableOperatorWriteNode (location: (1,0)-(1,12))
            ├── name_loc: (1,0)-(1,3) = "foo"
            ├── operator_loc: (1,4)-(1,6) = "+="
            ├── value:
            │   @ CallNode (location: (1,7)-(1,12))
            │   ├── flags: ignore_visibility
            │   ├── receiver: ∅
            │   ├── call_operator_loc: ∅
            │   ├── name: :m
            │   ├── message_loc: (1,7)-(1,8) = "m"
            │   ├── opening_loc: ∅
            │   ├── arguments:
            │   │   @ ArgumentsNode (location: (1,9)-(1,12))
            │   │   ├── flags: ∅
            │   │   └── arguments: (length: 1)
            │   │       └── @ LocalVariableReadNode (location: (1,9)-(1,12))
            │   │           ├── name: :foo
            │   │           └── depth: 0
            │   ├── closing_loc: ∅
            │   └── block: ∅
            ├── name: :foo
            ├── operator: :+
            └── depth: 0