aboutsummaryrefslogtreecommitdiffstats
path: root/test/yarp/snapshots/seattlerb/parse_line_defn_complex.txt
blob: b624f1a99ed64ef9c2bf3f3f22b9be0a5b8b3346 (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
@ ProgramNode (location: (0...40))
├── locals: []
└── statements:
    @ StatementsNode (location: (0...40))
    └── body: (length: 1)
        └── @ DefNode (location: (0...40))
            ├── name: :x
            ├── name_loc: (4...5) = "x"
            ├── receiver: ∅
            ├── parameters:
            │   @ ParametersNode (location: (6...7))
            │   ├── requireds: (length: 1)
            │   │   └── @ RequiredParameterNode (location: (6...7))
            │   │       └── name: :y
            │   ├── optionals: (length: 0)
            │   ├── posts: (length: 0)
            │   ├── rest: ∅
            │   ├── keywords: (length: 0)
            │   ├── keyword_rest: ∅
            │   └── block: ∅
            ├── body:
            │   @ StatementsNode (location: (11...35))
            │   └── body: (length: 3)
            │       ├── @ CallNode (location: (11...15))
            │       │   ├── receiver: ∅
            │       │   ├── call_operator_loc: ∅
            │       │   ├── message_loc: (11...12) = "p"
            │       │   ├── opening_loc: (12...13) = "("
            │       │   ├── arguments:
            │       │   │   @ ArgumentsNode (location: (13...14))
            │       │   │   └── arguments: (length: 1)
            │       │   │       └── @ LocalVariableReadNode (location: (13...14))
            │       │   │           ├── name: :y
            │       │   │           └── depth: 0
            │       │   ├── closing_loc: (14...15) = ")"
            │       │   ├── block: ∅
            │       │   ├── flags: 
            │       │   └── name: "p"
            │       ├── @ LocalVariableOperatorWriteNode (location: (18...24))
            │       │   ├── name_loc: (18...19) = "y"
            │       │   ├── operator_loc: (20...22) = "*="
            │       │   ├── value:
            │       │   │   @ IntegerNode (location: (23...24))
            │       │   │   └── flags: decimal
            │       │   ├── name: :y
            │       │   ├── operator: :*
            │       │   └── depth: 0
            │       └── @ ReturnNode (location: (27...35))
            │           ├── keyword_loc: (27...33) = "return"
            │           └── arguments:
            │               @ ArgumentsNode (location: (34...35))
            │               └── arguments: (length: 1)
            │                   └── @ LocalVariableReadNode (location: (34...35))
            │                       ├── name: :y
            │                       └── depth: 0
            ├── locals: [:y]
            ├── def_keyword_loc: (0...3) = "def"
            ├── operator_loc: ∅
            ├── lparen_loc: (5...6) = "("
            ├── rparen_loc: (7...8) = ")"
            ├── equal_loc: ∅
            └── end_keyword_loc: (37...40) = "end"