aboutsummaryrefslogtreecommitdiffstats
path: root/test/yarp/snapshots/whitequark/optarg.txt
blob: dbc5fe6b32f47aa6851f147393a97902c1e47e5c (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
@ ProgramNode (location: (0...44))
├── locals: []
└── statements:
    @ StatementsNode (location: (0...44))
    └── body: (length: 2)
        ├── @ DefNode (location: (0...18))
        │   ├── name: :f
        │   ├── name_loc: (4...5) = "f"
        │   ├── receiver: ∅
        │   ├── parameters:
        │   │   @ ParametersNode (location: (6...13))
        │   │   ├── requireds: (length: 0)
        │   │   ├── optionals: (length: 1)
        │   │   │   └── @ OptionalParameterNode (location: (6...13))
        │   │   │       ├── name: :foo
        │   │   │       ├── name_loc: (6...9) = "foo"
        │   │   │       ├── operator_loc: (10...11) = "="
        │   │   │       └── value:
        │   │   │           @ IntegerNode (location: (12...13))
        │   │   │           └── flags: decimal
        │   │   ├── posts: (length: 0)
        │   │   ├── rest: ∅
        │   │   ├── keywords: (length: 0)
        │   │   ├── keyword_rest: ∅
        │   │   └── block: ∅
        │   ├── body: ∅
        │   ├── locals: [:foo]
        │   ├── def_keyword_loc: (0...3) = "def"
        │   ├── operator_loc: ∅
        │   ├── lparen_loc: ∅
        │   ├── rparen_loc: ∅
        │   ├── equal_loc: ∅
        │   └── end_keyword_loc: (15...18) = "end"
        └── @ DefNode (location: (20...44))
            ├── name: :f
            ├── name_loc: (24...25) = "f"
            ├── receiver: ∅
            ├── parameters:
            │   @ ParametersNode (location: (26...38))
            │   ├── requireds: (length: 0)
            │   ├── optionals: (length: 2)
            │   │   ├── @ OptionalParameterNode (location: (26...31))
            │   │   │   ├── name: :foo
            │   │   │   ├── name_loc: (26...29) = "foo"
            │   │   │   ├── operator_loc: (29...30) = "="
            │   │   │   └── value:
            │   │   │       @ IntegerNode (location: (30...31))
            │   │   │       └── flags: decimal
            │   │   └── @ OptionalParameterNode (location: (33...38))
            │   │       ├── name: :bar
            │   │       ├── name_loc: (33...36) = "bar"
            │   │       ├── operator_loc: (36...37) = "="
            │   │       └── value:
            │   │           @ IntegerNode (location: (37...38))
            │   │           └── flags: decimal
            │   ├── posts: (length: 0)
            │   ├── rest: ∅
            │   ├── keywords: (length: 0)
            │   ├── keyword_rest: ∅
            │   └── block: ∅
            ├── body: ∅
            ├── locals: [:foo, :bar]
            ├── def_keyword_loc: (20...23) = "def"
            ├── operator_loc: ∅
            ├── lparen_loc: (25...26) = "("
            ├── rparen_loc: (38...39) = ")"
            ├── equal_loc: ∅
            └── end_keyword_loc: (41...44) = "end"