blob: ee03a037613c9be1829fb74bf6ebb45e712b4d76 (
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
|
@ ProgramNode (location: (0...145))
├── locals: []
└── statements:
@ StatementsNode (location: (0...145))
└── body: (length: 3)
├── @ DefNode (location: (0...49))
│ ├── name: :exec
│ ├── name_loc: (9...13) = "exec"
│ ├── receiver:
│ │ @ SelfNode (location: (4...8))
│ ├── parameters:
│ │ @ ParametersNode (location: (14...17))
│ │ ├── requireds: (length: 1)
│ │ │ └── @ RequiredParameterNode (location: (14...17))
│ │ │ └── name: :cmd
│ │ ├── optionals: (length: 0)
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 0)
│ │ ├── keyword_rest: ∅
│ │ └── block: ∅
│ ├── body:
│ │ @ BeginNode (location: (21...49))
│ │ ├── begin_keyword_loc: ∅
│ │ ├── statements:
│ │ │ @ StatementsNode (location: (21...32))
│ │ │ └── body: (length: 1)
│ │ │ └── @ CallNode (location: (21...32))
│ │ │ ├── receiver: ∅
│ │ │ ├── call_operator_loc: ∅
│ │ │ ├── message_loc: (21...27) = "system"
│ │ │ ├── opening_loc: (27...28) = "("
│ │ │ ├── arguments:
│ │ │ │ @ ArgumentsNode (location: (28...31))
│ │ │ │ └── arguments: (length: 1)
│ │ │ │ └── @ LocalVariableReadNode (location: (28...31))
│ │ │ │ ├── name: :cmd
│ │ │ │ └── depth: 0
│ │ │ ├── closing_loc: (31...32) = ")"
│ │ │ ├── block: ∅
│ │ │ ├── flags:
│ │ │ └── name: "system"
│ │ ├── rescue_clause:
│ │ │ @ RescueNode (location: (33...45))
│ │ │ ├── keyword_loc: (33...39) = "rescue"
│ │ │ ├── exceptions: (length: 0)
│ │ │ ├── operator_loc: ∅
│ │ │ ├── reference: ∅
│ │ │ ├── statements:
│ │ │ │ @ StatementsNode (location: (42...45))
│ │ │ │ └── body: (length: 1)
│ │ │ │ └── @ NilNode (location: (42...45))
│ │ │ └── consequent: ∅
│ │ ├── else_clause: ∅
│ │ ├── ensure_clause: ∅
│ │ └── end_keyword_loc: (46...49) = "end"
│ ├── locals: [:cmd]
│ ├── def_keyword_loc: (0...3) = "def"
│ ├── operator_loc: (8...9) = "."
│ ├── lparen_loc: (13...14) = "("
│ ├── rparen_loc: (17...18) = ")"
│ ├── equal_loc: ∅
│ └── end_keyword_loc: (46...49) = "end"
├── @ DefNode (location: (52...99))
│ ├── name: :exec
│ ├── name_loc: (61...65) = "exec"
│ ├── receiver:
│ │ @ SelfNode (location: (56...60))
│ ├── parameters:
│ │ @ ParametersNode (location: (66...69))
│ │ ├── requireds: (length: 1)
│ │ │ └── @ RequiredParameterNode (location: (66...69))
│ │ │ └── name: :cmd
│ │ ├── optionals: (length: 0)
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 0)
│ │ ├── keyword_rest: ∅
│ │ └── block: ∅
│ ├── body:
│ │ @ StatementsNode (location: (73...95))
│ │ └── body: (length: 1)
│ │ └── @ RescueModifierNode (location: (73...95))
│ │ ├── expression:
│ │ │ @ CallNode (location: (73...84))
│ │ │ ├── receiver: ∅
│ │ │ ├── call_operator_loc: ∅
│ │ │ ├── message_loc: (73...79) = "system"
│ │ │ ├── opening_loc: (79...80) = "("
│ │ │ ├── arguments:
│ │ │ │ @ ArgumentsNode (location: (80...83))
│ │ │ │ └── arguments: (length: 1)
│ │ │ │ └── @ LocalVariableReadNode (location: (80...83))
│ │ │ │ ├── name: :cmd
│ │ │ │ └── depth: 0
│ │ │ ├── closing_loc: (83...84) = ")"
│ │ │ ├── block: ∅
│ │ │ ├── flags:
│ │ │ └── name: "system"
│ │ ├── keyword_loc: (85...91) = "rescue"
│ │ └── rescue_expression:
│ │ @ NilNode (location: (92...95))
│ ├── locals: [:cmd]
│ ├── def_keyword_loc: (52...55) = "def"
│ ├── operator_loc: (60...61) = "."
│ ├── lparen_loc: (65...66) = "("
│ ├── rparen_loc: (69...70) = ")"
│ ├── equal_loc: ∅
│ └── end_keyword_loc: (96...99) = "end"
└── @ DefNode (location: (102...145))
├── name: :exec
├── name_loc: (111...115) = "exec"
├── receiver:
│ @ SelfNode (location: (106...110))
├── parameters:
│ @ ParametersNode (location: (116...119))
│ ├── requireds: (length: 1)
│ │ └── @ RequiredParameterNode (location: (116...119))
│ │ └── name: :cmd
│ ├── optionals: (length: 0)
│ ├── rest: ∅
│ ├── posts: (length: 0)
│ ├── keywords: (length: 0)
│ ├── keyword_rest: ∅
│ └── block: ∅
├── body:
│ @ StatementsNode (location: (123...145))
│ └── body: (length: 1)
│ └── @ RescueModifierNode (location: (123...145))
│ ├── expression:
│ │ @ CallNode (location: (123...134))
│ │ ├── receiver: ∅
│ │ ├── call_operator_loc: ∅
│ │ ├── message_loc: (123...129) = "system"
│ │ ├── opening_loc: (129...130) = "("
│ │ ├── arguments:
│ │ │ @ ArgumentsNode (location: (130...133))
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ LocalVariableReadNode (location: (130...133))
│ │ │ ├── name: :cmd
│ │ │ └── depth: 0
│ │ ├── closing_loc: (133...134) = ")"
│ │ ├── block: ∅
│ │ ├── flags:
│ │ └── name: "system"
│ ├── keyword_loc: (135...141) = "rescue"
│ └── rescue_expression:
│ @ NilNode (location: (142...145))
├── locals: [:cmd]
├── def_keyword_loc: (102...105) = "def"
├── operator_loc: (110...111) = "."
├── lparen_loc: (115...116) = "("
├── rparen_loc: (119...120) = ")"
├── equal_loc: (121...122) = "="
└── end_keyword_loc: ∅
|