aboutsummaryrefslogtreecommitdiffstats
path: root/test/yarp/snapshots/whitequark/forward_args_legacy.txt
blob: 4d6abd7034c21bcc83644c1378a10ff819ef283d (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
@ ProgramNode (location: (0...77))
├── locals: []
└── statements:
    @ StatementsNode (location: (0...77))
    └── body: (length: 3)
        ├── @ DefNode (location: (0...27))
        │   ├── name: :foo
        │   ├── name_loc: (4...7) = "foo"
        │   ├── receiver: ∅
        │   ├── parameters:
        │   │   @ ParametersNode (location: (8...11))
        │   │   ├── requireds: (length: 0)
        │   │   ├── optionals: (length: 0)
        │   │   ├── rest: ∅
        │   │   ├── posts: (length: 0)
        │   │   ├── keywords: (length: 0)
        │   │   ├── keyword_rest:
        │   │   │   @ ForwardingParameterNode (location: (8...11))
        │   │   └── block: ∅
        │   ├── body:
        │   │   @ StatementsNode (location: (14...22))
        │   │   └── body: (length: 1)
        │   │       └── @ CallNode (location: (14...22))
        │   │           ├── receiver: ∅
        │   │           ├── call_operator_loc: ∅
        │   │           ├── message_loc: (14...17) = "bar"
        │   │           ├── opening_loc: (17...18) = "("
        │   │           ├── arguments:
        │   │           │   @ ArgumentsNode (location: (18...21))
        │   │           │   └── arguments: (length: 1)
        │   │           │       └── @ ForwardingArgumentsNode (location: (18...21))
        │   │           ├── closing_loc: (21...22) = ")"
        │   │           ├── block: ∅
        │   │           ├── flags: 
        │   │           └── name: "bar"
        │   ├── locals: [:"..."]
        │   ├── def_keyword_loc: (0...3) = "def"
        │   ├── operator_loc: ∅
        │   ├── lparen_loc: (7...8) = "("
        │   ├── rparen_loc: (11...12) = ")"
        │   ├── equal_loc: ∅
        │   └── end_keyword_loc: (24...27) = "end"
        ├── @ DefNode (location: (29...46))
        │   ├── name: :foo
        │   ├── name_loc: (33...36) = "foo"
        │   ├── receiver: ∅
        │   ├── parameters:
        │   │   @ ParametersNode (location: (37...40))
        │   │   ├── requireds: (length: 0)
        │   │   ├── optionals: (length: 0)
        │   │   ├── rest: ∅
        │   │   ├── posts: (length: 0)
        │   │   ├── keywords: (length: 0)
        │   │   ├── keyword_rest:
        │   │   │   @ ForwardingParameterNode (location: (37...40))
        │   │   └── block: ∅
        │   ├── body: ∅
        │   ├── locals: [:"..."]
        │   ├── def_keyword_loc: (29...32) = "def"
        │   ├── operator_loc: ∅
        │   ├── lparen_loc: (36...37) = "("
        │   ├── rparen_loc: (40...41) = ")"
        │   ├── equal_loc: ∅
        │   └── end_keyword_loc: (43...46) = "end"
        └── @ DefNode (location: (48...77))
            ├── name: :foo
            ├── name_loc: (52...55) = "foo"
            ├── receiver: ∅
            ├── parameters:
            │   @ ParametersNode (location: (56...59))
            │   ├── requireds: (length: 0)
            │   ├── optionals: (length: 0)
            │   ├── rest: ∅
            │   ├── posts: (length: 0)
            │   ├── keywords: (length: 0)
            │   ├── keyword_rest:
            │   │   @ ForwardingParameterNode (location: (56...59))
            │   └── block: ∅
            ├── body:
            │   @ StatementsNode (location: (62...72))
            │   └── body: (length: 1)
            │       └── @ SuperNode (location: (62...72))
            │           ├── keyword_loc: (62...67) = "super"
            │           ├── lparen_loc: (67...68) = "("
            │           ├── arguments:
            │           │   @ ArgumentsNode (location: (68...71))
            │           │   └── arguments: (length: 1)
            │           │       └── @ ForwardingArgumentsNode (location: (68...71))
            │           ├── rparen_loc: (71...72) = ")"
            │           └── block: ∅
            ├── locals: [:"..."]
            ├── def_keyword_loc: (48...51) = "def"
            ├── operator_loc: ∅
            ├── lparen_loc: (55...56) = "("
            ├── rparen_loc: (59...60) = ")"
            ├── equal_loc: ∅
            └── end_keyword_loc: (74...77) = "end"