aboutsummaryrefslogtreecommitdiffstats
path: root/test/prism/snapshots/unparser/corpus/literal/yield.txt
blob: dcedb07426206731a9624ab1f3cf513f5182acb0 (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: (1,0)-(3,11))
├── locals: []
└── statements:
    @ StatementsNode (location: (1,0)-(3,11))
    └── body: (length: 3)
        ├── @ YieldNode (location: (1,0)-(1,5))
        │   ├── keyword_loc: (1,0)-(1,5) = "yield"
        │   ├── lparen_loc: ∅
        │   ├── arguments: ∅
        │   └── rparen_loc: ∅
        ├── @ YieldNode (location: (2,0)-(2,8))
        │   ├── keyword_loc: (2,0)-(2,5) = "yield"
        │   ├── lparen_loc: (2,5)-(2,6) = "("
        │   ├── arguments:
        │   │   @ ArgumentsNode (location: (2,6)-(2,7))
        │   │   ├── arguments: (length: 1)
        │   │   │   └── @ CallNode (location: (2,6)-(2,7))
        │   │   │       ├── receiver: ∅
        │   │   │       ├── call_operator_loc: ∅
        │   │   │       ├── name: :a
        │   │   │       ├── message_loc: (2,6)-(2,7) = "a"
        │   │   │       ├── opening_loc: ∅
        │   │   │       ├── arguments: ∅
        │   │   │       ├── closing_loc: ∅
        │   │   │       ├── block: ∅
        │   │   │       └── flags: variable_call
        │   │   └── flags: ∅
        │   └── rparen_loc: (2,7)-(2,8) = ")"
        └── @ YieldNode (location: (3,0)-(3,11))
            ├── keyword_loc: (3,0)-(3,5) = "yield"
            ├── lparen_loc: (3,5)-(3,6) = "("
            ├── arguments:
            │   @ ArgumentsNode (location: (3,6)-(3,10))
            │   ├── arguments: (length: 2)
            │   │   ├── @ CallNode (location: (3,6)-(3,7))
            │   │   │   ├── receiver: ∅
            │   │   │   ├── call_operator_loc: ∅
            │   │   │   ├── name: :a
            │   │   │   ├── message_loc: (3,6)-(3,7) = "a"
            │   │   │   ├── opening_loc: ∅
            │   │   │   ├── arguments: ∅
            │   │   │   ├── closing_loc: ∅
            │   │   │   ├── block: ∅
            │   │   │   └── flags: variable_call
            │   │   └── @ CallNode (location: (3,9)-(3,10))
            │   │       ├── receiver: ∅
            │   │       ├── call_operator_loc: ∅
            │   │       ├── name: :b
            │   │       ├── message_loc: (3,9)-(3,10) = "b"
            │   │       ├── opening_loc: ∅
            │   │       ├── arguments: ∅
            │   │       ├── closing_loc: ∅
            │   │       ├── block: ∅
            │   │       └── flags: variable_call
            │   └── flags: ∅
            └── rparen_loc: (3,10)-(3,11) = ")"