summaryrefslogtreecommitdiff
path: root/test/prism/snapshots/seattlerb/defn_oneliner.txt
blob: e7004998092e7c0db00e3b2367e9781bd4ea0844 (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
@ ProgramNode (location: (1,0)-(1,27))
├── locals: []
└── statements:
    @ StatementsNode (location: (1,0)-(1,27))
    └── body: (length: 1)
        └── @ DefNode (location: (1,0)-(1,27))
            ├── name: :exec
            ├── name_loc: (1,4)-(1,8) = "exec"
            ├── receiver: ∅
            ├── parameters:
            │   @ ParametersNode (location: (1,9)-(1,12))
            │   ├── requireds: (length: 1)
            │   │   └── @ RequiredParameterNode (location: (1,9)-(1,12))
            │   │       ├── flags: ∅
            │   │       └── name: :cmd
            │   ├── optionals: (length: 0)
            │   ├── rest: ∅
            │   ├── posts: (length: 0)
            │   ├── keywords: (length: 0)
            │   ├── keyword_rest: ∅
            │   └── block: ∅
            ├── body:
            │   @ StatementsNode (location: (1,16)-(1,27))
            │   └── body: (length: 1)
            │       └── @ CallNode (location: (1,16)-(1,27))
            │           ├── flags: ignore_visibility
            │           ├── receiver: ∅
            │           ├── call_operator_loc: ∅
            │           ├── name: :system
            │           ├── message_loc: (1,16)-(1,22) = "system"
            │           ├── opening_loc: (1,22)-(1,23) = "("
            │           ├── arguments:
            │           │   @ ArgumentsNode (location: (1,23)-(1,26))
            │           │   ├── flags: ∅
            │           │   └── arguments: (length: 1)
            │           │       └── @ LocalVariableReadNode (location: (1,23)-(1,26))
            │           │           ├── name: :cmd
            │           │           └── depth: 0
            │           ├── closing_loc: (1,26)-(1,27) = ")"
            │           └── block: ∅
            ├── locals: [:cmd]
            ├── def_keyword_loc: (1,0)-(1,3) = "def"
            ├── operator_loc: ∅
            ├── lparen_loc: (1,8)-(1,9) = "("
            ├── rparen_loc: (1,12)-(1,13) = ")"
            ├── equal_loc: (1,14)-(1,15) = "="
            └── end_keyword_loc: ∅