aboutsummaryrefslogtreecommitdiffstats
path: root/test/yarp/snapshots/seattlerb/defs_oneliner_eq2.txt
blob: abbe054d2d5bb325037bc8766c86f61032b04477 (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
@ ProgramNode (location: (0...33))
├── locals: []
└── statements:
    @ StatementsNode (location: (0...33))
    └── body: (length: 1)
        └── @ ClassNode (location: (0...33))
            ├── locals: []
            ├── class_keyword_loc: (0...5) = "class"
            ├── constant_path:
            │   @ ConstantReadNode (location: (6...7))
            │   └── name: :X
            ├── inheritance_operator_loc: ∅
            ├── superclass: ∅
            ├── body:
            │   @ StatementsNode (location: (10...29))
            │   └── body: (length: 1)
            │       └── @ DefNode (location: (10...29))
            │           ├── name: :==
            │           ├── name_loc: (19...21) = "=="
            │           ├── receiver:
            │           │   @ SelfNode (location: (14...18))
            │           ├── parameters:
            │           │   @ ParametersNode (location: (22...23))
            │           │   ├── requireds: (length: 1)
            │           │   │   └── @ RequiredParameterNode (location: (22...23))
            │           │   │       └── name: :o
            │           │   ├── optionals: (length: 0)
            │           │   ├── rest: ∅
            │           │   ├── posts: (length: 0)
            │           │   ├── keywords: (length: 0)
            │           │   ├── keyword_rest: ∅
            │           │   └── block: ∅
            │           ├── body:
            │           │   @ StatementsNode (location: (27...29))
            │           │   └── body: (length: 1)
            │           │       └── @ IntegerNode (location: (27...29))
            │           │           └── flags: decimal
            │           ├── locals: [:o]
            │           ├── def_keyword_loc: (10...13) = "def"
            │           ├── operator_loc: (18...19) = "."
            │           ├── lparen_loc: (21...22) = "("
            │           ├── rparen_loc: (23...24) = ")"
            │           ├── equal_loc: (25...26) = "="
            │           └── end_keyword_loc: ∅
            ├── end_keyword_loc: (30...33) = "end"
            └── name: :X