vigiles 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/.ruby-version +1 -0
- data/lib/vigiles/archive/extras.rb +1 -1
- data/lib/vigiles/archive/metadata.rb +1 -1
- data/lib/vigiles/archive/response.rb +31 -5
- data/lib/vigiles/archive.rb +1 -1
- data/lib/vigiles/constants.rb +1 -1
- data/lib/vigiles/conversation_recorder.rb +3 -0
- data/lib/vigiles/conversation_recorders/application_json.rb +11 -6
- data/lib/vigiles/conversation_recorders/unknown.rb +3 -0
- data/lib/vigiles/middleware/record_conversation.rb +2 -2
- data/lib/vigiles/version.rb +1 -1
- data/sorbet/rbi/gems/concurrent-ruby@1.3.1.rbi +11627 -0
- data/sorbet/rbi/gems/{json@2.7.1.rbi → json@2.7.2.rbi} +73 -72
- data/sorbet/rbi/gems/{minitest@5.22.2.rbi → minitest@5.23.1.rbi} +841 -159
- data/sorbet/rbi/gems/{parser@3.3.0.5.rbi → parser@3.3.1.0.rbi} +233 -186
- data/sorbet/rbi/gems/{prism@0.24.0.rbi → prism@0.29.0.rbi} +19135 -12188
- data/sorbet/rbi/gems/{racc@1.7.3.rbi → racc@1.8.0.rbi} +34 -33
- data/sorbet/rbi/gems/{rake@13.1.0.rbi → rake@13.2.1.rbi} +77 -55
- data/sorbet/rbi/gems/{rbi@0.1.9.rbi → rbi@0.1.13.rbi} +226 -154
- data/sorbet/rbi/gems/{rdoc@6.6.3.1.rbi → rdoc@6.7.0.rbi} +333 -327
- data/sorbet/rbi/gems/{regexp_parser@2.9.0.rbi → regexp_parser@2.9.2.rbi} +3 -2
- data/sorbet/rbi/gems/{reline@0.5.7.rbi → reline@0.5.8.rbi} +1 -0
- data/sorbet/rbi/gems/{rexml@3.2.6.rbi → rexml@3.2.8.rbi} +121 -108
- data/sorbet/rbi/gems/{rubocop-ast@1.30.0.rbi → rubocop-ast@1.31.3.rbi} +92 -62
- data/sorbet/rbi/gems/{rubocop-minitest@0.34.5.rbi → rubocop-minitest@0.35.0.rbi} +35 -0
- data/sorbet/rbi/gems/{rubocop-sorbet@0.7.4.rbi → rubocop-sorbet@0.8.3.rbi} +327 -162
- data/sorbet/rbi/gems/{rubocop@1.60.2.rbi → rubocop@1.64.0.rbi} +1719 -1065
- data/sorbet/rbi/gems/{spoom@1.2.4.rbi → spoom@1.3.2.rbi} +1057 -413
- data/sorbet/rbi/gems/strscan@3.1.0.rbi +9 -0
- data/sorbet/rbi/gems/{tapioca@0.12.0.rbi → tapioca@0.14.2.rbi} +123 -448
- data/sorbet/rbi/gems/{thor@1.3.0.rbi → thor@1.3.1.rbi} +57 -50
- data/sorbet/rbi/gems/{yard@0.9.34.rbi → yard@0.9.36.rbi} +230 -37
- data/sorbet/rbi/gems/{zeitwerk@2.6.13.rbi → zeitwerk@2.6.15.rbi} +47 -36
- data/vigiles.gemspec +1 -1
- metadata +27 -27
- data/sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi +0 -8
- data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +0 -951
- data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +0 -23136
@@ -4,130 +4,85 @@
|
|
4
4
|
# This is an autogenerated file for types exported from the `spoom` gem.
|
5
5
|
# Please instead update this file by running `bin/tapioca gem spoom`.
|
6
6
|
|
7
|
+
|
7
8
|
# source://spoom//lib/spoom.rb#7
|
8
9
|
module Spoom; end
|
9
10
|
|
10
11
|
# source://spoom//lib/spoom/cli/helper.rb#9
|
11
12
|
module Spoom::Cli; end
|
12
13
|
|
13
|
-
# source://spoom//lib/spoom/cli/
|
14
|
-
class Spoom::Cli::
|
14
|
+
# source://spoom//lib/spoom/cli/deadcode.rb#8
|
15
|
+
class Spoom::Cli::Deadcode < ::Thor
|
15
16
|
include ::Spoom::Colorize
|
16
17
|
include ::Spoom::Cli::Helper
|
17
18
|
|
18
|
-
# source://spoom//lib/spoom/cli/
|
19
|
-
sig { params(
|
20
|
-
def
|
19
|
+
# source://spoom//lib/spoom/cli/deadcode.rb#52
|
20
|
+
sig { params(paths: ::String).void }
|
21
|
+
def deadcode(*paths); end
|
21
22
|
|
22
23
|
def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end
|
23
24
|
|
24
|
-
# source://spoom//lib/spoom/cli/
|
25
|
-
def
|
26
|
-
|
27
|
-
# source://spoom//lib/spoom/cli/bump.rb#192
|
28
|
-
def undo_changes(files, from_strictness); end
|
29
|
-
end
|
30
|
-
|
31
|
-
# source://spoom//lib/spoom/cli/config.rb#9
|
32
|
-
class Spoom::Cli::Config < ::Thor
|
33
|
-
include ::Spoom::Colorize
|
34
|
-
include ::Spoom::Cli::Helper
|
35
|
-
|
36
|
-
def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end
|
37
|
-
|
38
|
-
# source://spoom//lib/spoom/cli/config.rb#15
|
39
|
-
def show; end
|
40
|
-
end
|
41
|
-
|
42
|
-
# source://spoom//lib/spoom/cli/coverage.rb#9
|
43
|
-
class Spoom::Cli::Coverage < ::Thor
|
44
|
-
include ::Spoom::Colorize
|
45
|
-
include ::Spoom::Cli::Helper
|
46
|
-
|
47
|
-
# source://spoom//lib/spoom/cli/coverage.rb#198
|
48
|
-
def bundle_install(path, sha); end
|
49
|
-
|
50
|
-
def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end
|
51
|
-
|
52
|
-
# source://spoom//lib/spoom/cli/coverage.rb#210
|
53
|
-
def message_no_data(file); end
|
54
|
-
|
55
|
-
# source://spoom//lib/spoom/cli/coverage.rb#173
|
56
|
-
def open(file = T.unsafe(nil)); end
|
57
|
-
|
58
|
-
# source://spoom//lib/spoom/cli/coverage.rb#189
|
59
|
-
def parse_time(string, option); end
|
60
|
-
|
61
|
-
# source://spoom//lib/spoom/cli/coverage.rb#142
|
62
|
-
def report; end
|
63
|
-
|
64
|
-
# source://spoom//lib/spoom/cli/coverage.rb#20
|
65
|
-
def snapshot; end
|
66
|
-
|
67
|
-
# source://spoom//lib/spoom/cli/coverage.rb#42
|
68
|
-
def timeline; end
|
25
|
+
# source://spoom//lib/spoom/cli/deadcode.rb#150
|
26
|
+
def remove(location_string); end
|
69
27
|
end
|
70
28
|
|
71
|
-
# source://spoom//lib/spoom/cli/coverage.rb#12
|
72
|
-
Spoom::Cli::Coverage::DATA_DIR = T.let(T.unsafe(nil), String)
|
73
|
-
|
74
29
|
# source://spoom//lib/spoom/cli/helper.rb#10
|
75
30
|
module Spoom::Cli::Helper
|
76
31
|
include ::Spoom::Colorize
|
77
32
|
|
78
33
|
requires_ancestor { Thor }
|
79
34
|
|
80
|
-
# source://spoom//lib/spoom/cli/helper.rb#
|
35
|
+
# source://spoom//lib/spoom/cli/helper.rb#139
|
81
36
|
sig { params(string: ::String).returns(::String) }
|
82
37
|
def blue(string); end
|
83
38
|
|
84
39
|
# Is the `--color` option true?
|
85
40
|
#
|
86
|
-
# source://spoom//lib/spoom/cli/helper.rb#
|
41
|
+
# source://spoom//lib/spoom/cli/helper.rb#103
|
87
42
|
sig { returns(T::Boolean) }
|
88
43
|
def color?; end
|
89
44
|
|
90
45
|
# Colorize a string if `color?`
|
91
46
|
#
|
92
|
-
# source://spoom//lib/spoom/cli/helper.rb#
|
47
|
+
# source://spoom//lib/spoom/cli/helper.rb#132
|
93
48
|
sig { params(string: ::String, color: ::Spoom::Color).returns(::String) }
|
94
49
|
def colorize(string, *color); end
|
95
50
|
|
96
51
|
# Returns the context at `--path` (by default the current working directory)
|
97
52
|
#
|
98
|
-
# source://spoom//lib/spoom/cli/helper.rb#
|
53
|
+
# source://spoom//lib/spoom/cli/helper.rb#71
|
99
54
|
sig { returns(::Spoom::Context) }
|
100
55
|
def context; end
|
101
56
|
|
102
57
|
# Raise if `spoom` is not ran inside a context with a `sorbet/config` file
|
103
58
|
#
|
104
|
-
# source://spoom//lib/spoom/cli/helper.rb#
|
59
|
+
# source://spoom//lib/spoom/cli/helper.rb#77
|
105
60
|
sig { returns(::Spoom::Context) }
|
106
61
|
def context_requiring_sorbet!; end
|
107
62
|
|
108
|
-
# source://spoom//lib/spoom/cli/helper.rb#
|
63
|
+
# source://spoom//lib/spoom/cli/helper.rb#144
|
109
64
|
sig { params(string: ::String).returns(::String) }
|
110
65
|
def cyan(string); end
|
111
66
|
|
112
67
|
# Return the path specified through `--path`
|
113
68
|
#
|
114
|
-
# source://spoom//lib/spoom/cli/helper.rb#
|
69
|
+
# source://spoom//lib/spoom/cli/helper.rb#92
|
115
70
|
sig { returns(::String) }
|
116
71
|
def exec_path; end
|
117
72
|
|
118
|
-
# source://spoom//lib/spoom/cli/helper.rb#
|
73
|
+
# source://spoom//lib/spoom/cli/helper.rb#149
|
119
74
|
sig { params(string: ::String).returns(::String) }
|
120
75
|
def gray(string); end
|
121
76
|
|
122
|
-
# source://spoom//lib/spoom/cli/helper.rb#
|
77
|
+
# source://spoom//lib/spoom/cli/helper.rb#154
|
123
78
|
sig { params(string: ::String).returns(::String) }
|
124
79
|
def green(string); end
|
125
80
|
|
126
|
-
# source://spoom//lib/spoom/cli/helper.rb#
|
81
|
+
# source://spoom//lib/spoom/cli/helper.rb#108
|
127
82
|
sig { params(string: ::String).returns(::String) }
|
128
83
|
def highlight(string); end
|
129
84
|
|
130
|
-
# source://spoom//lib/spoom/cli/helper.rb#
|
85
|
+
# source://spoom//lib/spoom/cli/helper.rb#159
|
131
86
|
sig { params(string: ::String).returns(::String) }
|
132
87
|
def red(string); end
|
133
88
|
|
@@ -145,136 +100,221 @@ module Spoom::Cli::Helper
|
|
145
100
|
sig { params(message: ::String, status: T.nilable(::String), nl: T::Boolean).void }
|
146
101
|
def say_error(message, status: T.unsafe(nil), nl: T.unsafe(nil)); end
|
147
102
|
|
148
|
-
#
|
103
|
+
# Print `message` on `$stderr`
|
104
|
+
#
|
105
|
+
# The message is prefixed by a status (default: `Warning`).
|
106
|
+
#
|
107
|
+
# source://spoom//lib/spoom/cli/helper.rb#59
|
108
|
+
sig { params(message: ::String, status: T.nilable(::String), nl: T::Boolean).void }
|
109
|
+
def say_warning(message, status: T.unsafe(nil), nl: T.unsafe(nil)); end
|
110
|
+
|
111
|
+
# source://spoom//lib/spoom/cli/helper.rb#164
|
149
112
|
sig { params(string: ::String).returns(::String) }
|
150
113
|
def yellow(string); end
|
151
114
|
end
|
152
115
|
|
153
|
-
# source://spoom//lib/spoom/cli
|
154
|
-
class Spoom::Cli::
|
116
|
+
# source://spoom//lib/spoom/cli.rb#12
|
117
|
+
class Spoom::Cli::Main < ::Thor
|
118
|
+
include ::Spoom::Colorize
|
119
|
+
include ::Spoom::Cli::Helper
|
120
|
+
|
121
|
+
# source://spoom//lib/spoom/cli.rb#101
|
122
|
+
def __print_version; end
|
123
|
+
|
124
|
+
# source://spoom//lib/spoom/cli.rb#58
|
125
|
+
sig { params(directory: ::String).void }
|
126
|
+
def bump(directory = T.unsafe(nil)); end
|
127
|
+
|
128
|
+
# source://spoom//lib/spoom/cli.rb#65
|
129
|
+
def coverage(*args); end
|
130
|
+
|
131
|
+
# source://thor/1.3.1/lib/thor.rb#334
|
132
|
+
def deadcode(*args); end
|
133
|
+
|
134
|
+
# source://spoom//lib/spoom/cli.rb#75
|
135
|
+
def lsp(*args); end
|
136
|
+
|
137
|
+
# source://thor/1.3.1/lib/thor.rb#334
|
138
|
+
def srb(*args); end
|
139
|
+
|
140
|
+
# source://spoom//lib/spoom/cli.rb#94
|
141
|
+
def tc(*paths_to_select); end
|
142
|
+
|
143
|
+
class << self
|
144
|
+
# @return [Boolean]
|
145
|
+
#
|
146
|
+
# source://spoom//lib/spoom/cli.rb#108
|
147
|
+
def exit_on_failure?; end
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
151
|
+
# source://spoom//lib/spoom/cli.rb#81
|
152
|
+
Spoom::Cli::Main::SORT_CODE = T.let(T.unsafe(nil), String)
|
153
|
+
|
154
|
+
# source://spoom//lib/spoom/cli.rb#83
|
155
|
+
Spoom::Cli::Main::SORT_ENUM = T.let(T.unsafe(nil), Array)
|
156
|
+
|
157
|
+
# source://spoom//lib/spoom/cli.rb#82
|
158
|
+
Spoom::Cli::Main::SORT_LOC = T.let(T.unsafe(nil), String)
|
159
|
+
|
160
|
+
# source://spoom//lib/spoom/cli/srb/bump.rb#9
|
161
|
+
module Spoom::Cli::Srb; end
|
162
|
+
|
163
|
+
# source://spoom//lib/spoom/cli/srb/bump.rb#10
|
164
|
+
class Spoom::Cli::Srb::Bump < ::Thor
|
165
|
+
include ::Spoom::Colorize
|
166
|
+
include ::Spoom::Cli::Helper
|
167
|
+
|
168
|
+
# source://spoom//lib/spoom/cli/srb/bump.rb#50
|
169
|
+
sig { params(directory: ::String).void }
|
170
|
+
def bump(directory = T.unsafe(nil)); end
|
171
|
+
|
172
|
+
def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end
|
173
|
+
|
174
|
+
# source://spoom//lib/spoom/cli/srb/bump.rb#171
|
175
|
+
def print_changes(files, command:, from: T.unsafe(nil), to: T.unsafe(nil), dry: T.unsafe(nil), path: T.unsafe(nil)); end
|
176
|
+
|
177
|
+
# source://spoom//lib/spoom/cli/srb/bump.rb#193
|
178
|
+
def undo_changes(files, from_strictness); end
|
179
|
+
end
|
180
|
+
|
181
|
+
# source://spoom//lib/spoom/cli/srb/coverage.rb#10
|
182
|
+
class Spoom::Cli::Srb::Coverage < ::Thor
|
183
|
+
include ::Spoom::Colorize
|
184
|
+
include ::Spoom::Cli::Helper
|
185
|
+
|
186
|
+
# source://spoom//lib/spoom/cli/srb/coverage.rb#199
|
187
|
+
def bundle_install(path, sha); end
|
188
|
+
|
189
|
+
def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end
|
190
|
+
|
191
|
+
# source://spoom//lib/spoom/cli/srb/coverage.rb#211
|
192
|
+
def message_no_data(file); end
|
193
|
+
|
194
|
+
# source://spoom//lib/spoom/cli/srb/coverage.rb#174
|
195
|
+
def open(file = T.unsafe(nil)); end
|
196
|
+
|
197
|
+
# source://spoom//lib/spoom/cli/srb/coverage.rb#190
|
198
|
+
def parse_time(string, option); end
|
199
|
+
|
200
|
+
# source://spoom//lib/spoom/cli/srb/coverage.rb#143
|
201
|
+
def report; end
|
202
|
+
|
203
|
+
# source://spoom//lib/spoom/cli/srb/coverage.rb#21
|
204
|
+
def snapshot; end
|
205
|
+
|
206
|
+
# source://spoom//lib/spoom/cli/srb/coverage.rb#43
|
207
|
+
def timeline; end
|
208
|
+
end
|
209
|
+
|
210
|
+
# source://spoom//lib/spoom/cli/srb/coverage.rb#13
|
211
|
+
Spoom::Cli::Srb::Coverage::DATA_DIR = T.let(T.unsafe(nil), String)
|
212
|
+
|
213
|
+
# source://spoom//lib/spoom/cli/srb/lsp.rb#11
|
214
|
+
class Spoom::Cli::Srb::LSP < ::Thor
|
155
215
|
include ::Spoom::Colorize
|
156
216
|
include ::Spoom::Cli::Helper
|
157
217
|
|
158
218
|
# TODO: options, filter, limit, kind etc.. filter rbi
|
159
219
|
#
|
160
|
-
# source://spoom//lib/spoom/cli/lsp.rb#
|
220
|
+
# source://spoom//lib/spoom/cli/srb/lsp.rb#45
|
161
221
|
def defs(file, line, col); end
|
162
222
|
|
163
223
|
# TODO: options, filter, limit, kind etc.. filter rbi
|
164
224
|
#
|
165
|
-
# source://spoom//lib/spoom/cli/lsp.rb#
|
225
|
+
# source://spoom//lib/spoom/cli/srb/lsp.rb#55
|
166
226
|
def find(query); end
|
167
227
|
|
168
228
|
def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end
|
169
229
|
|
170
230
|
# TODO: options, filter, limit, kind etc.. filter rbi
|
171
231
|
#
|
172
|
-
# source://spoom//lib/spoom/cli/lsp.rb#
|
232
|
+
# source://spoom//lib/spoom/cli/srb/lsp.rb#31
|
173
233
|
def hover(file, line, col); end
|
174
234
|
|
175
235
|
# TODO: options, filter, limit, kind etc.. filter rbi
|
176
236
|
#
|
177
|
-
# source://spoom//lib/spoom/cli/lsp.rb#
|
237
|
+
# source://spoom//lib/spoom/cli/srb/lsp.rb#16
|
178
238
|
def list; end
|
179
239
|
|
180
|
-
# source://spoom//lib/spoom/cli/lsp.rb#
|
240
|
+
# source://spoom//lib/spoom/cli/srb/lsp.rb#104
|
181
241
|
def lsp_client; end
|
182
242
|
|
183
243
|
# TODO: options, filter, limit, kind etc.. filter rbi
|
184
244
|
#
|
185
|
-
# source://spoom//lib/spoom/cli/lsp.rb#
|
245
|
+
# source://spoom//lib/spoom/cli/srb/lsp.rb#75
|
186
246
|
def refs(file, line, col); end
|
187
247
|
|
188
|
-
# source://spoom//lib/spoom/cli/lsp.rb#
|
248
|
+
# source://spoom//lib/spoom/cli/srb/lsp.rb#127
|
189
249
|
def run(&block); end
|
190
250
|
|
191
|
-
# source://spoom//lib/spoom/cli/lsp.rb#16
|
192
|
-
def show; end
|
193
|
-
|
194
251
|
# TODO: options, filter, limit, kind etc.. filter rbi
|
195
252
|
#
|
196
|
-
# source://spoom//lib/spoom/cli/lsp.rb#
|
253
|
+
# source://spoom//lib/spoom/cli/srb/lsp.rb#85
|
197
254
|
def sigs(file, line, col); end
|
198
255
|
|
199
|
-
# source://spoom//lib/spoom/cli/lsp.rb#
|
256
|
+
# source://spoom//lib/spoom/cli/srb/lsp.rb#119
|
200
257
|
def symbol_printer; end
|
201
258
|
|
202
259
|
# TODO: options, filter, limit, kind etc.. filter rbi
|
203
260
|
#
|
204
|
-
# source://spoom//lib/spoom/cli/lsp.rb#
|
261
|
+
# source://spoom//lib/spoom/cli/srb/lsp.rb#65
|
205
262
|
def symbols(file); end
|
206
263
|
|
207
|
-
# source://spoom//lib/spoom/cli/lsp.rb#
|
264
|
+
# source://spoom//lib/spoom/cli/srb/lsp.rb#152
|
208
265
|
def to_uri(path); end
|
209
266
|
|
210
267
|
# TODO: options, filter, limit, kind etc.. filter rbi
|
211
268
|
#
|
212
|
-
# source://spoom//lib/spoom/cli/lsp.rb#
|
269
|
+
# source://spoom//lib/spoom/cli/srb/lsp.rb#95
|
213
270
|
def types(file, line, col); end
|
214
271
|
end
|
215
272
|
|
216
|
-
# source://spoom//lib/spoom/cli.rb#
|
217
|
-
class Spoom::Cli::Main < ::Thor
|
218
|
-
|
219
|
-
include ::Spoom::Cli::Helper
|
220
|
-
|
221
|
-
# source://spoom//lib/spoom/cli.rb#61
|
222
|
-
def __print_version; end
|
223
|
-
|
224
|
-
# source://thor/1.3.0/lib/thor.rb#334
|
273
|
+
# source://spoom//lib/spoom/cli/srb.rb#12
|
274
|
+
class Spoom::Cli::Srb::Main < ::Thor
|
275
|
+
# source://thor/1.3.1/lib/thor.rb#334
|
225
276
|
def bump(*args); end
|
226
277
|
|
227
|
-
# source://thor/1.3.
|
228
|
-
def config(*args); end
|
229
|
-
|
230
|
-
# source://thor/1.3.0/lib/thor.rb#334
|
278
|
+
# source://thor/1.3.1/lib/thor.rb#334
|
231
279
|
def coverage(*args); end
|
232
280
|
|
233
|
-
|
234
|
-
def files; end
|
281
|
+
def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end
|
235
282
|
|
236
|
-
# source://thor/1.3.
|
283
|
+
# source://thor/1.3.1/lib/thor.rb#334
|
237
284
|
def lsp(*args); end
|
238
285
|
|
239
|
-
# source://thor/1.3.
|
286
|
+
# source://thor/1.3.1/lib/thor.rb#334
|
240
287
|
def tc(*args); end
|
241
|
-
|
242
|
-
class << self
|
243
|
-
# @return [Boolean]
|
244
|
-
#
|
245
|
-
# source://spoom//lib/spoom/cli.rb#68
|
246
|
-
def exit_on_failure?; end
|
247
|
-
end
|
248
288
|
end
|
249
289
|
|
250
|
-
# source://spoom//lib/spoom/cli/
|
251
|
-
class Spoom::Cli::
|
290
|
+
# source://spoom//lib/spoom/cli/srb/tc.rb#7
|
291
|
+
class Spoom::Cli::Srb::Tc < ::Thor
|
252
292
|
include ::Spoom::Colorize
|
253
293
|
include ::Spoom::Cli::Helper
|
254
294
|
|
255
|
-
# source://spoom//lib/spoom/cli/
|
295
|
+
# source://spoom//lib/spoom/cli/srb/tc.rb#132
|
256
296
|
def colorize_message(message); end
|
257
297
|
|
258
|
-
# source://spoom//lib/spoom/cli/
|
298
|
+
# source://spoom//lib/spoom/cli/srb/tc.rb#123
|
259
299
|
def format_error(error, format); end
|
260
300
|
|
261
301
|
def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end
|
262
302
|
|
263
|
-
# source://spoom//lib/spoom/cli/
|
303
|
+
# source://spoom//lib/spoom/cli/srb/tc.rb#27
|
264
304
|
def tc(*paths_to_select); end
|
265
305
|
end
|
266
306
|
|
267
|
-
# source://spoom//lib/spoom/cli/
|
268
|
-
Spoom::Cli::
|
307
|
+
# source://spoom//lib/spoom/cli/srb/tc.rb#16
|
308
|
+
Spoom::Cli::Srb::Tc::DEFAULT_FORMAT = T.let(T.unsafe(nil), String)
|
269
309
|
|
270
|
-
# source://spoom//lib/spoom/cli/
|
271
|
-
Spoom::Cli::
|
310
|
+
# source://spoom//lib/spoom/cli/srb/tc.rb#12
|
311
|
+
Spoom::Cli::Srb::Tc::SORT_CODE = T.let(T.unsafe(nil), String)
|
272
312
|
|
273
|
-
# source://spoom//lib/spoom/cli/
|
274
|
-
Spoom::Cli::
|
313
|
+
# source://spoom//lib/spoom/cli/srb/tc.rb#14
|
314
|
+
Spoom::Cli::Srb::Tc::SORT_ENUM = T.let(T.unsafe(nil), Array)
|
275
315
|
|
276
|
-
# source://spoom//lib/spoom/cli/
|
277
|
-
Spoom::Cli::
|
316
|
+
# source://spoom//lib/spoom/cli/srb/tc.rb#13
|
317
|
+
Spoom::Cli::Srb::Tc::SORT_LOC = T.let(T.unsafe(nil), String)
|
278
318
|
|
279
319
|
# source://spoom//lib/spoom/colors.rb#5
|
280
320
|
class Spoom::Color < ::T::Enum
|
@@ -579,7 +619,7 @@ module Spoom::Context::Git
|
|
579
619
|
sig { params(arg: ::String).returns(::Spoom::ExecResult) }
|
580
620
|
def git_show(*arg); end
|
581
621
|
|
582
|
-
# Is there
|
622
|
+
# Is there uncommitted changes in this context directory?
|
583
623
|
#
|
584
624
|
# source://spoom//lib/spoom/context/git.rb#132
|
585
625
|
sig { params(path: ::String).returns(T::Boolean) }
|
@@ -958,7 +998,7 @@ class Spoom::Coverage::D3::ColorPalette < ::T::Struct
|
|
958
998
|
prop :strong, ::String
|
959
999
|
|
960
1000
|
class << self
|
961
|
-
# source://sorbet-runtime/0.5.
|
1001
|
+
# source://sorbet-runtime/0.5.11394/lib/types/struct.rb#13
|
962
1002
|
def inherited(s); end
|
963
1003
|
end
|
964
1004
|
end
|
@@ -1298,7 +1338,7 @@ class Spoom::Coverage::Snapshot < ::T::Struct
|
|
1298
1338
|
sig { params(obj: T::Hash[::String, T.untyped]).returns(::Spoom::Coverage::Snapshot) }
|
1299
1339
|
def from_obj(obj); end
|
1300
1340
|
|
1301
|
-
# source://sorbet-runtime/0.5.
|
1341
|
+
# source://sorbet-runtime/0.5.11394/lib/types/struct.rb#13
|
1302
1342
|
def inherited(s); end
|
1303
1343
|
end
|
1304
1344
|
end
|
@@ -1350,10 +1390,10 @@ class Spoom::Coverage::Template
|
|
1350
1390
|
def html; end
|
1351
1391
|
end
|
1352
1392
|
|
1353
|
-
# source://spoom//lib/spoom/deadcode/
|
1393
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#5
|
1354
1394
|
module Spoom::Deadcode
|
1355
1395
|
class << self
|
1356
|
-
# source://spoom//lib/spoom/deadcode.rb#
|
1396
|
+
# source://spoom//lib/spoom/deadcode.rb#81
|
1357
1397
|
sig do
|
1358
1398
|
params(
|
1359
1399
|
index: ::Spoom::Deadcode::Index,
|
@@ -1364,7 +1404,19 @@ module Spoom::Deadcode
|
|
1364
1404
|
end
|
1365
1405
|
def index_erb(index, erb, file:, plugins: T.unsafe(nil)); end
|
1366
1406
|
|
1367
|
-
# source://spoom//lib/spoom/deadcode.rb#
|
1407
|
+
# source://spoom//lib/spoom/deadcode.rb#67
|
1408
|
+
sig do
|
1409
|
+
params(
|
1410
|
+
index: ::Spoom::Deadcode::Index,
|
1411
|
+
node: ::Prism::Node,
|
1412
|
+
ruby: ::String,
|
1413
|
+
file: ::String,
|
1414
|
+
plugins: T::Array[::Spoom::Deadcode::Plugins::Base]
|
1415
|
+
).void
|
1416
|
+
end
|
1417
|
+
def index_node(index, node, ruby, file:, plugins: T.unsafe(nil)); end
|
1418
|
+
|
1419
|
+
# source://spoom//lib/spoom/deadcode.rb#75
|
1368
1420
|
sig do
|
1369
1421
|
params(
|
1370
1422
|
index: ::Spoom::Deadcode::Index,
|
@@ -1375,20 +1427,24 @@ module Spoom::Deadcode
|
|
1375
1427
|
end
|
1376
1428
|
def index_ruby(index, ruby, file:, plugins: T.unsafe(nil)); end
|
1377
1429
|
|
1378
|
-
# source://spoom//lib/spoom/deadcode/plugins.rb#
|
1430
|
+
# source://spoom//lib/spoom/deadcode/plugins.rb#75
|
1379
1431
|
sig { params(context: ::Spoom::Context).returns(T::Array[::Spoom::Deadcode::Plugins::Base]) }
|
1380
1432
|
def load_custom_plugins(context); end
|
1381
1433
|
|
1382
|
-
# source://spoom//lib/spoom/deadcode
|
1434
|
+
# source://spoom//lib/spoom/deadcode.rb#43
|
1435
|
+
sig { params(ruby: ::String, file: ::String).returns(::Prism::Node) }
|
1436
|
+
def parse_ruby(ruby, file:); end
|
1437
|
+
|
1438
|
+
# source://spoom//lib/spoom/deadcode/plugins.rb#61
|
1383
1439
|
sig { params(context: ::Spoom::Context).returns(T::Array[::Spoom::Deadcode::Plugins::Base]) }
|
1384
1440
|
def plugins_from_gemfile_lock(context); end
|
1385
1441
|
end
|
1386
1442
|
end
|
1387
1443
|
|
1388
|
-
# source://spoom//lib/spoom/deadcode/plugins.rb#
|
1444
|
+
# source://spoom//lib/spoom/deadcode/plugins.rb#26
|
1389
1445
|
Spoom::Deadcode::DEFAULT_CUSTOM_PLUGINS_PATH = T.let(T.unsafe(nil), String)
|
1390
1446
|
|
1391
|
-
# source://spoom//lib/spoom/deadcode/plugins.rb#
|
1447
|
+
# source://spoom//lib/spoom/deadcode/plugins.rb#28
|
1392
1448
|
Spoom::Deadcode::DEFAULT_PLUGINS = T.let(T.unsafe(nil), Set)
|
1393
1449
|
|
1394
1450
|
# A definition is a class, module, method, constant, etc. being defined in the code
|
@@ -1449,8 +1505,14 @@ class Spoom::Deadcode::Definition < ::T::Struct
|
|
1449
1505
|
sig { returns(T::Boolean) }
|
1450
1506
|
def module?; end
|
1451
1507
|
|
1508
|
+
# Utils
|
1509
|
+
#
|
1510
|
+
# source://spoom//lib/spoom/deadcode/definition.rb#100
|
1511
|
+
sig { params(args: T.untyped).returns(::String) }
|
1512
|
+
def to_json(*args); end
|
1513
|
+
|
1452
1514
|
class << self
|
1453
|
-
# source://sorbet-runtime/0.5.
|
1515
|
+
# source://sorbet-runtime/0.5.11394/lib/types/struct.rb#13
|
1454
1516
|
def inherited(s); end
|
1455
1517
|
end
|
1456
1518
|
end
|
@@ -1512,13 +1574,9 @@ Spoom::Deadcode::ERB::BLOCK_EXPR = T.let(T.unsafe(nil), Regexp)
|
|
1512
1574
|
|
1513
1575
|
# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
|
1514
1576
|
#
|
1515
|
-
# source://spoom//lib/spoom/deadcode.rb#
|
1577
|
+
# source://spoom//lib/spoom/deadcode.rb#21
|
1516
1578
|
class Spoom::Deadcode::Error < ::Spoom::Error
|
1517
1579
|
abstract!
|
1518
|
-
|
1519
|
-
# source://spoom//lib/spoom/deadcode.rb#27
|
1520
|
-
sig { params(message: ::String, parent: ::Exception).void }
|
1521
|
-
def initialize(message, parent:); end
|
1522
1580
|
end
|
1523
1581
|
|
1524
1582
|
# source://spoom//lib/spoom/deadcode/index.rb#6
|
@@ -1569,7 +1627,7 @@ class Spoom::Deadcode::Index
|
|
1569
1627
|
end
|
1570
1628
|
|
1571
1629
|
# source://spoom//lib/spoom/deadcode/indexer.rb#6
|
1572
|
-
class Spoom::Deadcode::Indexer < ::
|
1630
|
+
class Spoom::Deadcode::Indexer < ::Spoom::Deadcode::Visitor
|
1573
1631
|
# source://spoom//lib/spoom/deadcode/indexer.rb#16
|
1574
1632
|
sig do
|
1575
1633
|
params(
|
@@ -1581,96 +1639,75 @@ class Spoom::Deadcode::Indexer < ::SyntaxTree::Visitor
|
|
1581
1639
|
end
|
1582
1640
|
def initialize(path, source, index, plugins: T.unsafe(nil)); end
|
1583
1641
|
|
1584
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#459
|
1585
|
-
sig do
|
1586
|
-
params(
|
1587
|
-
node: T.nilable(T.any(::SyntaxTree::ArgParen, ::SyntaxTree::Args, ::SyntaxTree::ArgsForward))
|
1588
|
-
).returns(T::Array[::SyntaxTree::Node])
|
1589
|
-
end
|
1590
|
-
def call_args(node); end
|
1591
|
-
|
1592
1642
|
# Context
|
1593
1643
|
#
|
1594
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1595
|
-
sig { returns(::
|
1644
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#408
|
1645
|
+
sig { returns(::Prism::Node) }
|
1596
1646
|
def current_node; end
|
1597
1647
|
|
1598
1648
|
# Definition indexing
|
1599
1649
|
#
|
1600
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1601
|
-
sig { params(name: ::String, full_name: ::String, node: ::
|
1650
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#322
|
1651
|
+
sig { params(name: ::String, full_name: ::String, node: ::Prism::Node).void }
|
1602
1652
|
def define_attr_reader(name, full_name, node); end
|
1603
1653
|
|
1604
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1605
|
-
sig { params(name: ::String, full_name: ::String, node: ::
|
1654
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#334
|
1655
|
+
sig { params(name: ::String, full_name: ::String, node: ::Prism::Node).void }
|
1606
1656
|
def define_attr_writer(name, full_name, node); end
|
1607
1657
|
|
1608
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1609
|
-
sig { params(name: ::String, full_name: ::String, node: ::
|
1658
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#346
|
1659
|
+
sig { params(name: ::String, full_name: ::String, node: ::Prism::Node).void }
|
1610
1660
|
def define_class(name, full_name, node); end
|
1611
1661
|
|
1612
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1613
|
-
sig { params(name: ::String, full_name: ::String, node: ::
|
1662
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#358
|
1663
|
+
sig { params(name: ::String, full_name: ::String, node: ::Prism::Node).void }
|
1614
1664
|
def define_constant(name, full_name, node); end
|
1615
1665
|
|
1616
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1617
|
-
sig { params(name: ::String, full_name: ::String, node: ::
|
1666
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#370
|
1667
|
+
sig { params(name: ::String, full_name: ::String, node: ::Prism::Node).void }
|
1618
1668
|
def define_method(name, full_name, node); end
|
1619
1669
|
|
1620
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1621
|
-
sig { params(name: ::String, full_name: ::String, node: ::
|
1670
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#382
|
1671
|
+
sig { params(name: ::String, full_name: ::String, node: ::Prism::Node).void }
|
1622
1672
|
def define_module(name, full_name, node); end
|
1623
1673
|
|
1624
|
-
# @return [String]
|
1625
|
-
#
|
1626
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#10
|
1627
|
-
def file_name; end
|
1628
|
-
|
1629
1674
|
# source://spoom//lib/spoom/deadcode/indexer.rb#13
|
1630
1675
|
sig { returns(::Spoom::Deadcode::Index) }
|
1631
1676
|
def index; end
|
1632
1677
|
|
1633
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1678
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#453
|
1634
1679
|
sig { returns(T.nilable(::String)) }
|
1635
1680
|
def last_sig; end
|
1636
1681
|
|
1637
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1638
|
-
sig { returns(T.nilable(::
|
1682
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#427
|
1683
|
+
sig { returns(T.nilable(::Prism::BlockNode)) }
|
1639
1684
|
def nesting_block; end
|
1640
1685
|
|
1641
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1642
|
-
sig { returns(T.nilable(::
|
1643
|
-
def
|
1644
|
-
|
1645
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#396
|
1646
|
-
sig { returns(T.nilable(::String)) }
|
1647
|
-
def nesting_block_call_name; end
|
1686
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#432
|
1687
|
+
sig { returns(T.nilable(::Prism::CallNode)) }
|
1688
|
+
def nesting_call; end
|
1648
1689
|
|
1649
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1650
|
-
sig { returns(T.nilable(::
|
1690
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#422
|
1691
|
+
sig { returns(T.nilable(::Prism::ClassNode)) }
|
1651
1692
|
def nesting_class; end
|
1652
1693
|
|
1653
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1694
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#437
|
1654
1695
|
sig { returns(T.nilable(::String)) }
|
1655
1696
|
def nesting_class_name; end
|
1656
1697
|
|
1657
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1698
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#445
|
1658
1699
|
sig { returns(T.nilable(::String)) }
|
1659
1700
|
def nesting_class_superclass_name; end
|
1660
1701
|
|
1661
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1702
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#413
|
1662
1703
|
sig { type_parameters(:N).params(type: T::Class[T.type_parameter(:N)]).returns(T.nilable(T.type_parameter(:N))) }
|
1663
1704
|
def nesting_node(type); end
|
1664
1705
|
|
1665
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#445
|
1666
|
-
sig { params(node: ::SyntaxTree::Node).returns(::Spoom::Deadcode::Location) }
|
1667
|
-
def node_location(node); end
|
1668
|
-
|
1669
1706
|
# Node utils
|
1670
1707
|
#
|
1671
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1672
|
-
sig { params(node:
|
1673
|
-
def
|
1708
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#464
|
1709
|
+
sig { params(node: ::Prism::Node).returns(::Spoom::Deadcode::Location) }
|
1710
|
+
def node_location(node); end
|
1674
1711
|
|
1675
1712
|
# source://spoom//lib/spoom/deadcode/indexer.rb#10
|
1676
1713
|
sig { returns(::String) }
|
@@ -1678,107 +1715,119 @@ class Spoom::Deadcode::Indexer < ::SyntaxTree::Visitor
|
|
1678
1715
|
|
1679
1716
|
# Reference indexing
|
1680
1717
|
#
|
1681
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1682
|
-
sig { params(name: ::String, node: ::
|
1718
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#396
|
1719
|
+
sig { params(name: ::String, node: ::Prism::Node).void }
|
1683
1720
|
def reference_constant(name, node); end
|
1684
1721
|
|
1685
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1686
|
-
sig { params(name: ::String, node: ::
|
1722
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#401
|
1723
|
+
sig { params(name: ::String, node: ::Prism::Node).void }
|
1687
1724
|
def reference_method(name, node); end
|
1688
1725
|
|
1689
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#450
|
1690
|
-
sig { params(node: ::SyntaxTree::Node).returns(::String) }
|
1691
|
-
def symbol_string(node); end
|
1692
|
-
|
1693
1726
|
# Visit
|
1694
1727
|
#
|
1695
1728
|
# source://spoom//lib/spoom/deadcode/indexer.rb#35
|
1696
|
-
sig { override.params(node: T.nilable(::
|
1729
|
+
sig { override.params(node: T.nilable(::Prism::Node)).void }
|
1697
1730
|
def visit(node); end
|
1698
1731
|
|
1699
1732
|
# source://spoom//lib/spoom/deadcode/indexer.rb#45
|
1700
|
-
sig { override.params(node: ::
|
1701
|
-
def
|
1733
|
+
sig { override.params(node: ::Prism::AliasMethodNode).void }
|
1734
|
+
def visit_alias_method_node(node); end
|
1702
1735
|
|
1703
1736
|
# source://spoom//lib/spoom/deadcode/indexer.rb#50
|
1704
|
-
sig { override.params(node: ::
|
1705
|
-
def
|
1737
|
+
sig { override.params(node: ::Prism::AndNode).void }
|
1738
|
+
def visit_and_node(node); end
|
1706
1739
|
|
1707
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1708
|
-
sig { override.params(node: ::
|
1709
|
-
def
|
1740
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#56
|
1741
|
+
sig { override.params(node: ::Prism::BlockArgumentNode).void }
|
1742
|
+
def visit_block_argument_node(node); end
|
1710
1743
|
|
1711
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1712
|
-
sig { override.params(node: ::
|
1713
|
-
def
|
1744
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#67
|
1745
|
+
sig { override.params(node: ::Prism::CallAndWriteNode).void }
|
1746
|
+
def visit_call_and_write_node(node); end
|
1714
1747
|
|
1715
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1716
|
-
sig { override.params(node: ::
|
1717
|
-
def
|
1748
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#91
|
1749
|
+
sig { override.params(node: ::Prism::CallNode).void }
|
1750
|
+
def visit_call_node(node); end
|
1718
1751
|
|
1719
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1720
|
-
sig { override.params(node: ::
|
1721
|
-
def
|
1752
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#75
|
1753
|
+
sig { override.params(node: ::Prism::CallOperatorWriteNode).void }
|
1754
|
+
def visit_call_operator_write_node(node); end
|
1722
1755
|
|
1723
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1724
|
-
sig { override.params(node: ::
|
1725
|
-
def
|
1756
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#83
|
1757
|
+
sig { override.params(node: ::Prism::CallOrWriteNode).void }
|
1758
|
+
def visit_call_or_write_node(node); end
|
1726
1759
|
|
1727
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1728
|
-
sig { override.params(node: ::
|
1729
|
-
def
|
1760
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#104
|
1761
|
+
sig { override.params(node: ::Prism::ClassNode).void }
|
1762
|
+
def visit_class_node(node); end
|
1730
1763
|
|
1731
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1732
|
-
sig { override.params(node: ::
|
1733
|
-
def
|
1764
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#137
|
1765
|
+
sig { override.params(node: ::Prism::ConstantAndWriteNode).void }
|
1766
|
+
def visit_constant_and_write_node(node); end
|
1734
1767
|
|
1735
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1736
|
-
sig { override.params(node: ::
|
1737
|
-
def
|
1768
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#143
|
1769
|
+
sig { override.params(node: ::Prism::ConstantOperatorWriteNode).void }
|
1770
|
+
def visit_constant_operator_write_node(node); end
|
1738
1771
|
|
1739
1772
|
# source://spoom//lib/spoom/deadcode/indexer.rb#149
|
1740
|
-
sig { override.params(node: ::
|
1741
|
-
def
|
1773
|
+
sig { override.params(node: ::Prism::ConstantOrWriteNode).void }
|
1774
|
+
def visit_constant_or_write_node(node); end
|
1742
1775
|
|
1743
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1744
|
-
sig { override.params(node: ::
|
1745
|
-
def
|
1776
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#155
|
1777
|
+
sig { override.params(node: ::Prism::ConstantPathWriteNode).void }
|
1778
|
+
def visit_constant_path_write_node(node); end
|
1746
1779
|
|
1747
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1748
|
-
sig { override.params(node: ::
|
1749
|
-
def
|
1780
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#173
|
1781
|
+
sig { override.params(node: ::Prism::ConstantReadNode).void }
|
1782
|
+
def visit_constant_read_node(node); end
|
1750
1783
|
|
1751
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1752
|
-
sig { override.params(node: ::
|
1753
|
-
def
|
1784
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#178
|
1785
|
+
sig { override.params(node: ::Prism::ConstantWriteNode).void }
|
1786
|
+
def visit_constant_write_node(node); end
|
1754
1787
|
|
1755
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1756
|
-
sig { override.params(node: ::
|
1757
|
-
def
|
1788
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#186
|
1789
|
+
sig { override.params(node: ::Prism::DefNode).void }
|
1790
|
+
def visit_def_node(node); end
|
1758
1791
|
|
1759
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1760
|
-
sig { params(
|
1761
|
-
def
|
1792
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#194
|
1793
|
+
sig { override.params(node: ::Prism::LocalVariableAndWriteNode).void }
|
1794
|
+
def visit_local_variable_and_write_node(node); end
|
1795
|
+
|
1796
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#202
|
1797
|
+
sig { override.params(node: ::Prism::LocalVariableOperatorWriteNode).void }
|
1798
|
+
def visit_local_variable_operator_write_node(node); end
|
1799
|
+
|
1800
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#210
|
1801
|
+
sig { override.params(node: ::Prism::LocalVariableOrWriteNode).void }
|
1802
|
+
def visit_local_variable_or_write_node(node); end
|
1803
|
+
|
1804
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#218
|
1805
|
+
sig { override.params(node: ::Prism::LocalVariableWriteNode).void }
|
1806
|
+
def visit_local_variable_write_node(node); end
|
1762
1807
|
|
1763
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1764
|
-
sig { override.params(node: ::
|
1765
|
-
def
|
1808
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#224
|
1809
|
+
sig { override.params(node: ::Prism::ModuleNode).void }
|
1810
|
+
def visit_module_node(node); end
|
1766
1811
|
|
1767
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1768
|
-
sig { override.params(node: ::
|
1769
|
-
def
|
1812
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#254
|
1813
|
+
sig { override.params(node: ::Prism::MultiWriteNode).void }
|
1814
|
+
def visit_multi_write_node(node); end
|
1770
1815
|
|
1771
|
-
# source://spoom//lib/spoom/deadcode/indexer.rb#
|
1772
|
-
sig { override.params(node: ::
|
1773
|
-
def
|
1816
|
+
# source://spoom//lib/spoom/deadcode/indexer.rb#268
|
1817
|
+
sig { override.params(node: ::Prism::OrNode).void }
|
1818
|
+
def visit_or_node(node); end
|
1774
1819
|
|
1775
1820
|
# source://spoom//lib/spoom/deadcode/indexer.rb#274
|
1776
|
-
sig {
|
1777
|
-
def
|
1821
|
+
sig { params(send: ::Spoom::Deadcode::Send).void }
|
1822
|
+
def visit_send(send); end
|
1778
1823
|
end
|
1779
1824
|
|
1780
|
-
# source://spoom//lib/spoom/deadcode.rb#
|
1781
|
-
class Spoom::Deadcode::IndexerError < ::Spoom::Deadcode::Error
|
1825
|
+
# source://spoom//lib/spoom/deadcode.rb#29
|
1826
|
+
class Spoom::Deadcode::IndexerError < ::Spoom::Deadcode::Error
|
1827
|
+
# source://spoom//lib/spoom/deadcode.rb#33
|
1828
|
+
sig { params(message: ::String, parent: ::Exception).void }
|
1829
|
+
def initialize(message, parent:); end
|
1830
|
+
end
|
1782
1831
|
|
1783
1832
|
# source://spoom//lib/spoom/deadcode/location.rb#6
|
1784
1833
|
class Spoom::Deadcode::Location
|
@@ -1832,25 +1881,25 @@ class Spoom::Deadcode::Location
|
|
1832
1881
|
def to_s; end
|
1833
1882
|
|
1834
1883
|
class << self
|
1884
|
+
# source://spoom//lib/spoom/deadcode/location.rb#34
|
1885
|
+
sig { params(file: ::String, location: ::Prism::Location).returns(::Spoom::Deadcode::Location) }
|
1886
|
+
def from_prism(file, location); end
|
1887
|
+
|
1835
1888
|
# @raise [LocationError]
|
1836
1889
|
#
|
1837
1890
|
# source://spoom//lib/spoom/deadcode/location.rb#17
|
1838
1891
|
sig { params(location_string: ::String).returns(::Spoom::Deadcode::Location) }
|
1839
1892
|
def from_string(location_string); end
|
1840
|
-
|
1841
|
-
# source://spoom//lib/spoom/deadcode/location.rb#34
|
1842
|
-
sig { params(file: ::String, location: ::SyntaxTree::Location).returns(::Spoom::Deadcode::Location) }
|
1843
|
-
def from_syntax_tree(file, location); end
|
1844
1893
|
end
|
1845
1894
|
end
|
1846
1895
|
|
1847
1896
|
# source://spoom//lib/spoom/deadcode/location.rb#11
|
1848
1897
|
class Spoom::Deadcode::Location::LocationError < ::Spoom::Error; end
|
1849
1898
|
|
1850
|
-
# source://spoom//lib/spoom/deadcode/plugins.rb#
|
1899
|
+
# source://spoom//lib/spoom/deadcode/plugins.rb#36
|
1851
1900
|
Spoom::Deadcode::PLUGINS_FOR_GEM = T.let(T.unsafe(nil), Hash)
|
1852
1901
|
|
1853
|
-
# source://spoom//lib/spoom/deadcode.rb#
|
1902
|
+
# source://spoom//lib/spoom/deadcode.rb#27
|
1854
1903
|
class Spoom::Deadcode::ParserError < ::Spoom::Deadcode::Error; end
|
1855
1904
|
|
1856
1905
|
# source://spoom//lib/spoom/deadcode/plugins/base.rb#8
|
@@ -1863,6 +1912,13 @@ class Spoom::Deadcode::Plugins::ActionMailer < ::Spoom::Deadcode::Plugins::Base
|
|
1863
1912
|
def on_send(indexer, send); end
|
1864
1913
|
end
|
1865
1914
|
|
1915
|
+
# source://spoom//lib/spoom/deadcode/plugins/action_mailer_preview.rb#7
|
1916
|
+
class Spoom::Deadcode::Plugins::ActionMailerPreview < ::Spoom::Deadcode::Plugins::Base
|
1917
|
+
# source://spoom//lib/spoom/deadcode/plugins/action_mailer_preview.rb#13
|
1918
|
+
sig { override.params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).void }
|
1919
|
+
def on_define_method(indexer, definition); end
|
1920
|
+
end
|
1921
|
+
|
1866
1922
|
# source://spoom//lib/spoom/deadcode/plugins/actionpack.rb#7
|
1867
1923
|
class Spoom::Deadcode::Plugins::ActionPack < ::Spoom::Deadcode::Plugins::Base
|
1868
1924
|
# source://spoom//lib/spoom/deadcode/plugins/actionpack.rb#31
|
@@ -1904,7 +1960,14 @@ Spoom::Deadcode::Plugins::ActiveRecord::CALLBACKS = T.let(T.unsafe(nil), Array)
|
|
1904
1960
|
Spoom::Deadcode::Plugins::ActiveRecord::CRUD_METHODS = T.let(T.unsafe(nil), Array)
|
1905
1961
|
|
1906
1962
|
# source://spoom//lib/spoom/deadcode/plugins/active_support.rb#7
|
1907
|
-
class Spoom::Deadcode::Plugins::ActiveSupport < ::Spoom::Deadcode::Plugins::Base
|
1963
|
+
class Spoom::Deadcode::Plugins::ActiveSupport < ::Spoom::Deadcode::Plugins::Base
|
1964
|
+
# source://spoom//lib/spoom/deadcode/plugins/active_support.rb#22
|
1965
|
+
sig { override.params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send).void }
|
1966
|
+
def on_send(indexer, send); end
|
1967
|
+
end
|
1968
|
+
|
1969
|
+
# source://spoom//lib/spoom/deadcode/plugins/active_support.rb#19
|
1970
|
+
Spoom::Deadcode::Plugins::ActiveSupport::SETUP_AND_TEARDOWN_METHODS = T.let(T.unsafe(nil), Array)
|
1908
1971
|
|
1909
1972
|
# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
|
1910
1973
|
#
|
@@ -2048,7 +2111,7 @@ class Spoom::Deadcode::Plugins::Base
|
|
2048
2111
|
# return unless send.name == "dsl_method"
|
2049
2112
|
# return if send.args.empty?
|
2050
2113
|
#
|
2051
|
-
# method_name =
|
2114
|
+
# method_name = send.args.first.slice.delete_prefix(":")
|
2052
2115
|
# indexer.reference_method(method_name, send.node)
|
2053
2116
|
# end
|
2054
2117
|
# end
|
@@ -2291,8 +2354,8 @@ class Spoom::Deadcode::Plugins::Ruby < ::Spoom::Deadcode::Plugins::Base
|
|
2291
2354
|
|
2292
2355
|
private
|
2293
2356
|
|
2294
|
-
# source://spoom//lib/spoom/deadcode/plugins/ruby.rb#
|
2295
|
-
sig { params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send, node: ::
|
2357
|
+
# source://spoom//lib/spoom/deadcode/plugins/ruby.rb#43
|
2358
|
+
sig { params(indexer: ::Spoom::Deadcode::Indexer, send: ::Spoom::Deadcode::Send, node: ::Prism::Node).void }
|
2296
2359
|
def reference_symbol_as_constant(indexer, send, node); end
|
2297
2360
|
end
|
2298
2361
|
|
@@ -2308,7 +2371,7 @@ class Spoom::Deadcode::Plugins::Sorbet < ::Spoom::Deadcode::Plugins::Base
|
|
2308
2371
|
|
2309
2372
|
private
|
2310
2373
|
|
2311
|
-
# source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#
|
2374
|
+
# source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#34
|
2312
2375
|
sig { params(indexer: ::Spoom::Deadcode::Indexer, definition: ::Spoom::Deadcode::Definition).returns(T::Boolean) }
|
2313
2376
|
def sorbet_enum_constant?(indexer, definition); end
|
2314
2377
|
|
@@ -2343,7 +2406,7 @@ class Spoom::Deadcode::Reference < ::T::Struct
|
|
2343
2406
|
def method?; end
|
2344
2407
|
|
2345
2408
|
class << self
|
2346
|
-
# source://sorbet-runtime/0.5.
|
2409
|
+
# source://sorbet-runtime/0.5.11394/lib/types/struct.rb#13
|
2347
2410
|
def inherited(s); end
|
2348
2411
|
end
|
2349
2412
|
end
|
@@ -2363,135 +2426,132 @@ class Spoom::Deadcode::Remover
|
|
2363
2426
|
def initialize(context); end
|
2364
2427
|
|
2365
2428
|
# source://spoom//lib/spoom/deadcode/remover.rb#17
|
2366
|
-
sig
|
2429
|
+
sig do
|
2430
|
+
params(
|
2431
|
+
kind: T.nilable(::Spoom::Deadcode::Definition::Kind),
|
2432
|
+
location: ::Spoom::Deadcode::Location
|
2433
|
+
).returns(::String)
|
2434
|
+
end
|
2367
2435
|
def remove_location(kind, location); end
|
2368
2436
|
end
|
2369
2437
|
|
2370
2438
|
# source://spoom//lib/spoom/deadcode/remover.rb#9
|
2371
2439
|
class Spoom::Deadcode::Remover::Error < ::Spoom::Error; end
|
2372
2440
|
|
2373
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#
|
2441
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#372
|
2374
2442
|
class Spoom::Deadcode::Remover::NodeContext
|
2375
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#
|
2376
|
-
sig
|
2377
|
-
|
2443
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#392
|
2444
|
+
sig do
|
2445
|
+
params(
|
2446
|
+
source: ::String,
|
2447
|
+
comments: T::Hash[::Integer, ::Prism::Comment],
|
2448
|
+
node: ::Prism::Node,
|
2449
|
+
nesting: T::Array[::Prism::Node]
|
2450
|
+
).void
|
2451
|
+
end
|
2452
|
+
def initialize(source, comments, node, nesting); end
|
2378
2453
|
|
2379
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#
|
2380
|
-
sig { returns(T::Array[::
|
2381
|
-
def
|
2454
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#506
|
2455
|
+
sig { params(node: ::Prism::Node).returns(T::Array[::Prism::Comment]) }
|
2456
|
+
def attached_comments(node); end
|
2382
2457
|
|
2383
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#
|
2384
|
-
sig { returns(T.nilable(::
|
2458
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#534
|
2459
|
+
sig { returns(T.nilable(::Prism::CallNode)) }
|
2385
2460
|
def attached_sig; end
|
2386
2461
|
|
2387
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#
|
2388
|
-
sig {
|
2389
|
-
def
|
2462
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#521
|
2463
|
+
sig { returns(T::Array[::Prism::Node]) }
|
2464
|
+
def attached_sigs; end
|
2465
|
+
|
2466
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#376
|
2467
|
+
sig { returns(T::Hash[::Integer, ::Prism::Comment]) }
|
2468
|
+
def comments; end
|
2390
2469
|
|
2391
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#
|
2392
|
-
sig { returns(T::Array[::
|
2470
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#494
|
2471
|
+
sig { params(start_line: ::Integer, end_line: ::Integer).returns(T::Array[::Prism::Comment]) }
|
2472
|
+
def comments_between_lines(start_line, end_line); end
|
2473
|
+
|
2474
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#382
|
2475
|
+
sig { returns(T::Array[::Prism::Node]) }
|
2393
2476
|
def nesting; end
|
2394
2477
|
|
2395
|
-
# @return [Array<
|
2478
|
+
# @return [Array<Prism::Node>]
|
2396
2479
|
#
|
2397
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#
|
2480
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#382
|
2398
2481
|
def nesting=(_arg0); end
|
2399
2482
|
|
2400
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#
|
2401
|
-
sig { returns(T.nilable(::
|
2483
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#444
|
2484
|
+
sig { returns(T.nilable(::Prism::Node)) }
|
2402
2485
|
def next_node; end
|
2403
2486
|
|
2404
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#
|
2405
|
-
sig { returns(T::Array[::
|
2487
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#433
|
2488
|
+
sig { returns(T::Array[::Prism::Node]) }
|
2406
2489
|
def next_nodes; end
|
2407
2490
|
|
2408
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#
|
2409
|
-
sig { returns(::
|
2491
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#379
|
2492
|
+
sig { returns(::Prism::Node) }
|
2410
2493
|
def node; end
|
2411
2494
|
|
2412
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#
|
2413
|
-
sig { params(node: T.any(::Symbol, ::SyntaxTree::Node)).returns(::String) }
|
2414
|
-
def node_string(node); end
|
2415
|
-
|
2416
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#373
|
2495
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#408
|
2417
2496
|
sig { returns(::Spoom::Deadcode::Remover::NodeContext) }
|
2418
2497
|
def parent_context; end
|
2419
2498
|
|
2420
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#
|
2421
|
-
sig { returns(::
|
2499
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#400
|
2500
|
+
sig { returns(::Prism::Node) }
|
2422
2501
|
def parent_node; end
|
2423
2502
|
|
2424
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#
|
2425
|
-
sig { returns(T.nilable(::
|
2503
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#428
|
2504
|
+
sig { returns(T.nilable(::Prism::Node)) }
|
2426
2505
|
def previous_node; end
|
2427
2506
|
|
2428
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#
|
2429
|
-
sig { returns(T::Array[::
|
2507
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#417
|
2508
|
+
sig { returns(T::Array[::Prism::Node]) }
|
2430
2509
|
def previous_nodes; end
|
2431
2510
|
|
2432
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#
|
2511
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#449
|
2433
2512
|
sig { returns(T.nilable(::Spoom::Deadcode::Remover::NodeContext)) }
|
2434
2513
|
def sclass_context; end
|
2435
2514
|
|
2436
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#
|
2437
|
-
sig { params(node: T.nilable(::
|
2515
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#482
|
2516
|
+
sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) }
|
2438
2517
|
def sorbet_extend_sig?(node); end
|
2439
2518
|
|
2440
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#
|
2441
|
-
sig { params(node: T.nilable(::
|
2519
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#477
|
2520
|
+
sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) }
|
2442
2521
|
def sorbet_signature?(node); end
|
2443
2522
|
end
|
2444
2523
|
|
2445
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#
|
2446
|
-
class Spoom::Deadcode::Remover::NodeFinder < ::
|
2447
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#
|
2448
|
-
sig { params(location: ::Spoom::Deadcode::Location).void }
|
2449
|
-
def initialize(location); end
|
2524
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#549
|
2525
|
+
class Spoom::Deadcode::Remover::NodeFinder < ::Spoom::Deadcode::Visitor
|
2526
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#621
|
2527
|
+
sig { params(location: ::Spoom::Deadcode::Location, kind: T.nilable(::Spoom::Deadcode::Definition::Kind)).void }
|
2528
|
+
def initialize(location, kind); end
|
2450
2529
|
|
2451
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#
|
2452
|
-
sig { returns(T.nilable(::
|
2530
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#615
|
2531
|
+
sig { returns(T.nilable(::Prism::Node)) }
|
2453
2532
|
def node; end
|
2454
2533
|
|
2455
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#
|
2456
|
-
sig { returns(T::Array[::
|
2534
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#618
|
2535
|
+
sig { returns(T::Array[::Prism::Node]) }
|
2457
2536
|
def nodes_nesting; end
|
2458
2537
|
|
2459
|
-
#
|
2460
|
-
|
2461
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#551
|
2462
|
-
def nodes_nesting=(_arg0); end
|
2463
|
-
|
2464
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#562
|
2465
|
-
sig { override.params(node: T.nilable(::SyntaxTree::Node)).void }
|
2538
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#630
|
2539
|
+
sig { override.params(node: T.nilable(::Prism::Node)).void }
|
2466
2540
|
def visit(node); end
|
2467
2541
|
|
2468
|
-
private
|
2469
|
-
|
2470
|
-
# TODO: remove once SyntaxTree location are fixed
|
2471
|
-
#
|
2472
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#601
|
2473
|
-
sig { params(node: ::SyntaxTree::Node, nodes: T::Array[::SyntaxTree::Node]).returns(::Spoom::Deadcode::Location) }
|
2474
|
-
def location_from_children(node, nodes); end
|
2475
|
-
|
2476
|
-
# TODO: remove once SyntaxTree location are fixed
|
2477
|
-
#
|
2478
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#586
|
2479
|
-
sig { params(node: ::SyntaxTree::Node).returns(::Spoom::Deadcode::Location) }
|
2480
|
-
def location_from_node(node); end
|
2481
|
-
|
2482
2542
|
class << self
|
2483
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#
|
2543
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#556
|
2484
2544
|
sig do
|
2485
2545
|
params(
|
2486
2546
|
source: ::String,
|
2487
2547
|
location: ::Spoom::Deadcode::Location,
|
2488
|
-
kind: ::Spoom::Deadcode::Definition::Kind
|
2548
|
+
kind: T.nilable(::Spoom::Deadcode::Definition::Kind)
|
2489
2549
|
).returns(::Spoom::Deadcode::Remover::NodeContext)
|
2490
2550
|
end
|
2491
2551
|
def find(source, location, kind); end
|
2492
2552
|
|
2493
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#
|
2494
|
-
sig { params(node: ::
|
2553
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#590
|
2554
|
+
sig { params(node: ::Prism::Node, kind: ::Spoom::Deadcode::Definition::Kind).returns(T::Boolean) }
|
2495
2555
|
def node_match_kind?(node, kind); end
|
2496
2556
|
end
|
2497
2557
|
end
|
@@ -2502,7 +2562,7 @@ class Spoom::Deadcode::Remover::NodeRemover
|
|
2502
2562
|
sig do
|
2503
2563
|
params(
|
2504
2564
|
source: ::String,
|
2505
|
-
kind: ::Spoom::Deadcode::Definition::Kind,
|
2565
|
+
kind: T.nilable(::Spoom::Deadcode::Definition::Kind),
|
2506
2566
|
location: ::Spoom::Deadcode::Location
|
2507
2567
|
).void
|
2508
2568
|
end
|
@@ -2518,67 +2578,62 @@ class Spoom::Deadcode::Remover::NodeRemover
|
|
2518
2578
|
|
2519
2579
|
private
|
2520
2580
|
|
2521
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#
|
2581
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#153
|
2522
2582
|
sig { params(context: ::Spoom::Deadcode::Remover::NodeContext).void }
|
2523
2583
|
def delete_attr_accessor(context); end
|
2524
2584
|
|
2525
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#
|
2585
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#331
|
2526
2586
|
sig { params(start_char: ::Integer, end_char: ::Integer).void }
|
2527
2587
|
def delete_chars(start_char, end_char); end
|
2528
2588
|
|
2529
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#
|
2589
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#73
|
2530
2590
|
sig { params(context: ::Spoom::Deadcode::Remover::NodeContext).void }
|
2531
2591
|
def delete_constant_assignment(context); end
|
2532
2592
|
|
2533
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#
|
2534
|
-
sig { params(line_number: ::Integer, start_column: ::Integer, end_column: ::Integer).void }
|
2535
|
-
def delete_line_part(line_number, start_column, end_column); end
|
2536
|
-
|
2537
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#283
|
2593
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#324
|
2538
2594
|
sig { params(start_line: ::Integer, end_line: ::Integer).void }
|
2539
2595
|
def delete_lines(start_line, end_line); end
|
2540
2596
|
|
2541
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#
|
2597
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#261
|
2542
2598
|
sig { params(context: ::Spoom::Deadcode::Remover::NodeContext).void }
|
2543
2599
|
def delete_node_and_comments_and_sigs(context); end
|
2544
2600
|
|
2545
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#
|
2601
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#218
|
2546
2602
|
sig do
|
2547
2603
|
params(
|
2548
|
-
node: ::
|
2604
|
+
node: ::Prism::Node,
|
2549
2605
|
send_context: ::Spoom::Deadcode::Remover::NodeContext,
|
2550
2606
|
was_removed: T::Boolean
|
2551
2607
|
).void
|
2552
2608
|
end
|
2553
2609
|
def insert_accessor(node, send_context, was_removed:); end
|
2554
2610
|
|
2555
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#
|
2611
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#336
|
2556
2612
|
sig { params(start_char: ::Integer, end_char: ::Integer, replacement: ::String).void }
|
2557
2613
|
def replace_chars(start_char, end_char, replacement); end
|
2558
2614
|
|
2559
|
-
# source://spoom//lib/spoom/deadcode/remover.rb#
|
2615
|
+
# source://spoom//lib/spoom/deadcode/remover.rb#341
|
2560
2616
|
sig do
|
2561
2617
|
params(
|
2562
|
-
node: ::
|
2618
|
+
node: ::Prism::CallNode,
|
2563
2619
|
name: ::String,
|
2564
|
-
kind: ::Spoom::Deadcode::Definition::Kind
|
2620
|
+
kind: T.nilable(::Spoom::Deadcode::Definition::Kind)
|
2565
2621
|
).returns(::String)
|
2566
2622
|
end
|
2567
2623
|
def transform_sig(node, name:, kind:); end
|
2568
2624
|
end
|
2569
2625
|
|
2570
|
-
# An abstraction to simplify handling of
|
2571
|
-
# SyntaxTree::VCall nodes.
|
2626
|
+
# An abstraction to simplify handling of Prism::CallNode nodes.
|
2572
2627
|
#
|
2573
|
-
# source://spoom//lib/spoom/deadcode/send.rb#
|
2628
|
+
# source://spoom//lib/spoom/deadcode/send.rb#7
|
2574
2629
|
class Spoom::Deadcode::Send < ::T::Struct
|
2575
|
-
const :node, ::
|
2630
|
+
const :node, ::Prism::CallNode
|
2576
2631
|
const :name, ::String
|
2577
|
-
const :recv, T.nilable(::
|
2578
|
-
const :args, T::Array[::
|
2579
|
-
const :block, T.nilable(::
|
2632
|
+
const :recv, T.nilable(::Prism::Node), default: T.unsafe(nil)
|
2633
|
+
const :args, T::Array[::Prism::Node], default: T.unsafe(nil)
|
2634
|
+
const :block, T.nilable(::Prism::Node), default: T.unsafe(nil)
|
2580
2635
|
|
2581
|
-
# source://spoom//lib/spoom/deadcode/send.rb#
|
2636
|
+
# source://spoom//lib/spoom/deadcode/send.rb#21
|
2582
2637
|
sig do
|
2583
2638
|
type_parameters(:T)
|
2584
2639
|
.params(
|
@@ -2588,16 +2643,615 @@ class Spoom::Deadcode::Send < ::T::Struct
|
|
2588
2643
|
end
|
2589
2644
|
def each_arg(arg_type, &block); end
|
2590
2645
|
|
2591
|
-
# source://spoom//lib/spoom/deadcode/send.rb#
|
2592
|
-
sig { params(block: T.proc.params(key: ::
|
2646
|
+
# source://spoom//lib/spoom/deadcode/send.rb#28
|
2647
|
+
sig { params(block: T.proc.params(key: ::Prism::Node, value: T.nilable(::Prism::Node)).void).void }
|
2593
2648
|
def each_arg_assoc(&block); end
|
2594
2649
|
|
2595
2650
|
class << self
|
2596
|
-
# source://sorbet-runtime/0.5.
|
2651
|
+
# source://sorbet-runtime/0.5.11394/lib/types/struct.rb#13
|
2597
2652
|
def inherited(s); end
|
2598
2653
|
end
|
2599
2654
|
end
|
2600
2655
|
|
2656
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#6
|
2657
|
+
class Spoom::Deadcode::Visitor < ::Prism::Visitor
|
2658
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#15
|
2659
|
+
sig { override.params(node: ::Prism::AliasGlobalVariableNode).void }
|
2660
|
+
def visit_alias_global_variable_node(node); end
|
2661
|
+
|
2662
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#20
|
2663
|
+
sig { override.params(node: ::Prism::AliasMethodNode).void }
|
2664
|
+
def visit_alias_method_node(node); end
|
2665
|
+
|
2666
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#25
|
2667
|
+
sig { override.params(node: ::Prism::AlternationPatternNode).void }
|
2668
|
+
def visit_alternation_pattern_node(node); end
|
2669
|
+
|
2670
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#30
|
2671
|
+
sig { override.params(node: ::Prism::AndNode).void }
|
2672
|
+
def visit_and_node(node); end
|
2673
|
+
|
2674
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#35
|
2675
|
+
sig { override.params(node: ::Prism::ArgumentsNode).void }
|
2676
|
+
def visit_arguments_node(node); end
|
2677
|
+
|
2678
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#40
|
2679
|
+
sig { override.params(node: ::Prism::ArrayNode).void }
|
2680
|
+
def visit_array_node(node); end
|
2681
|
+
|
2682
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#45
|
2683
|
+
sig { override.params(node: ::Prism::ArrayPatternNode).void }
|
2684
|
+
def visit_array_pattern_node(node); end
|
2685
|
+
|
2686
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#50
|
2687
|
+
sig { override.params(node: ::Prism::AssocNode).void }
|
2688
|
+
def visit_assoc_node(node); end
|
2689
|
+
|
2690
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#55
|
2691
|
+
sig { override.params(node: ::Prism::AssocSplatNode).void }
|
2692
|
+
def visit_assoc_splat_node(node); end
|
2693
|
+
|
2694
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#60
|
2695
|
+
sig { override.params(node: ::Prism::BackReferenceReadNode).void }
|
2696
|
+
def visit_back_reference_read_node(node); end
|
2697
|
+
|
2698
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#65
|
2699
|
+
sig { override.params(node: ::Prism::BeginNode).void }
|
2700
|
+
def visit_begin_node(node); end
|
2701
|
+
|
2702
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#70
|
2703
|
+
sig { override.params(node: ::Prism::BlockArgumentNode).void }
|
2704
|
+
def visit_block_argument_node(node); end
|
2705
|
+
|
2706
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#75
|
2707
|
+
sig { override.params(node: ::Prism::BlockLocalVariableNode).void }
|
2708
|
+
def visit_block_local_variable_node(node); end
|
2709
|
+
|
2710
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#80
|
2711
|
+
sig { override.params(node: ::Prism::BlockNode).void }
|
2712
|
+
def visit_block_node(node); end
|
2713
|
+
|
2714
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#85
|
2715
|
+
sig { override.params(node: ::Prism::BlockParameterNode).void }
|
2716
|
+
def visit_block_parameter_node(node); end
|
2717
|
+
|
2718
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#90
|
2719
|
+
sig { override.params(node: ::Prism::BlockParametersNode).void }
|
2720
|
+
def visit_block_parameters_node(node); end
|
2721
|
+
|
2722
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#95
|
2723
|
+
sig { override.params(node: ::Prism::BreakNode).void }
|
2724
|
+
def visit_break_node(node); end
|
2725
|
+
|
2726
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#100
|
2727
|
+
sig { override.params(node: ::Prism::CallAndWriteNode).void }
|
2728
|
+
def visit_call_and_write_node(node); end
|
2729
|
+
|
2730
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#105
|
2731
|
+
sig { override.params(node: ::Prism::CallNode).void }
|
2732
|
+
def visit_call_node(node); end
|
2733
|
+
|
2734
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#110
|
2735
|
+
sig { override.params(node: ::Prism::CallOperatorWriteNode).void }
|
2736
|
+
def visit_call_operator_write_node(node); end
|
2737
|
+
|
2738
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#115
|
2739
|
+
sig { override.params(node: ::Prism::CallOrWriteNode).void }
|
2740
|
+
def visit_call_or_write_node(node); end
|
2741
|
+
|
2742
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#120
|
2743
|
+
sig { override.params(node: ::Prism::CallTargetNode).void }
|
2744
|
+
def visit_call_target_node(node); end
|
2745
|
+
|
2746
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#125
|
2747
|
+
sig { override.params(node: ::Prism::CapturePatternNode).void }
|
2748
|
+
def visit_capture_pattern_node(node); end
|
2749
|
+
|
2750
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#130
|
2751
|
+
sig { override.params(node: ::Prism::CaseMatchNode).void }
|
2752
|
+
def visit_case_match_node(node); end
|
2753
|
+
|
2754
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#135
|
2755
|
+
sig { override.params(node: ::Prism::CaseNode).void }
|
2756
|
+
def visit_case_node(node); end
|
2757
|
+
|
2758
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#10
|
2759
|
+
sig { override.params(node: ::Prism::Node).void }
|
2760
|
+
def visit_child_nodes(node); end
|
2761
|
+
|
2762
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#140
|
2763
|
+
sig { override.params(node: ::Prism::ClassNode).void }
|
2764
|
+
def visit_class_node(node); end
|
2765
|
+
|
2766
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#145
|
2767
|
+
sig { override.params(node: ::Prism::ClassVariableAndWriteNode).void }
|
2768
|
+
def visit_class_variable_and_write_node(node); end
|
2769
|
+
|
2770
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#150
|
2771
|
+
sig { override.params(node: ::Prism::ClassVariableOperatorWriteNode).void }
|
2772
|
+
def visit_class_variable_operator_write_node(node); end
|
2773
|
+
|
2774
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#155
|
2775
|
+
sig { override.params(node: ::Prism::ClassVariableOrWriteNode).void }
|
2776
|
+
def visit_class_variable_or_write_node(node); end
|
2777
|
+
|
2778
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#160
|
2779
|
+
sig { override.params(node: ::Prism::ClassVariableReadNode).void }
|
2780
|
+
def visit_class_variable_read_node(node); end
|
2781
|
+
|
2782
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#165
|
2783
|
+
sig { override.params(node: ::Prism::ClassVariableTargetNode).void }
|
2784
|
+
def visit_class_variable_target_node(node); end
|
2785
|
+
|
2786
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#170
|
2787
|
+
sig { override.params(node: ::Prism::ClassVariableWriteNode).void }
|
2788
|
+
def visit_class_variable_write_node(node); end
|
2789
|
+
|
2790
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#175
|
2791
|
+
sig { override.params(node: ::Prism::ConstantAndWriteNode).void }
|
2792
|
+
def visit_constant_and_write_node(node); end
|
2793
|
+
|
2794
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#180
|
2795
|
+
sig { override.params(node: ::Prism::ConstantOperatorWriteNode).void }
|
2796
|
+
def visit_constant_operator_write_node(node); end
|
2797
|
+
|
2798
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#185
|
2799
|
+
sig { override.params(node: ::Prism::ConstantOrWriteNode).void }
|
2800
|
+
def visit_constant_or_write_node(node); end
|
2801
|
+
|
2802
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#190
|
2803
|
+
sig { override.params(node: ::Prism::ConstantPathAndWriteNode).void }
|
2804
|
+
def visit_constant_path_and_write_node(node); end
|
2805
|
+
|
2806
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#195
|
2807
|
+
sig { override.params(node: ::Prism::ConstantPathNode).void }
|
2808
|
+
def visit_constant_path_node(node); end
|
2809
|
+
|
2810
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#200
|
2811
|
+
sig { override.params(node: ::Prism::ConstantPathOperatorWriteNode).void }
|
2812
|
+
def visit_constant_path_operator_write_node(node); end
|
2813
|
+
|
2814
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#205
|
2815
|
+
sig { override.params(node: ::Prism::ConstantPathOrWriteNode).void }
|
2816
|
+
def visit_constant_path_or_write_node(node); end
|
2817
|
+
|
2818
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#210
|
2819
|
+
sig { override.params(node: ::Prism::ConstantPathTargetNode).void }
|
2820
|
+
def visit_constant_path_target_node(node); end
|
2821
|
+
|
2822
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#215
|
2823
|
+
sig { override.params(node: ::Prism::ConstantPathWriteNode).void }
|
2824
|
+
def visit_constant_path_write_node(node); end
|
2825
|
+
|
2826
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#220
|
2827
|
+
sig { override.params(node: ::Prism::ConstantReadNode).void }
|
2828
|
+
def visit_constant_read_node(node); end
|
2829
|
+
|
2830
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#225
|
2831
|
+
sig { override.params(node: ::Prism::ConstantTargetNode).void }
|
2832
|
+
def visit_constant_target_node(node); end
|
2833
|
+
|
2834
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#230
|
2835
|
+
sig { override.params(node: ::Prism::ConstantWriteNode).void }
|
2836
|
+
def visit_constant_write_node(node); end
|
2837
|
+
|
2838
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#235
|
2839
|
+
sig { override.params(node: ::Prism::DefNode).void }
|
2840
|
+
def visit_def_node(node); end
|
2841
|
+
|
2842
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#240
|
2843
|
+
sig { override.params(node: ::Prism::DefinedNode).void }
|
2844
|
+
def visit_defined_node(node); end
|
2845
|
+
|
2846
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#245
|
2847
|
+
sig { override.params(node: ::Prism::ElseNode).void }
|
2848
|
+
def visit_else_node(node); end
|
2849
|
+
|
2850
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#250
|
2851
|
+
sig { override.params(node: ::Prism::EmbeddedStatementsNode).void }
|
2852
|
+
def visit_embedded_statements_node(node); end
|
2853
|
+
|
2854
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#255
|
2855
|
+
sig { override.params(node: ::Prism::EmbeddedVariableNode).void }
|
2856
|
+
def visit_embedded_variable_node(node); end
|
2857
|
+
|
2858
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#260
|
2859
|
+
sig { override.params(node: ::Prism::EnsureNode).void }
|
2860
|
+
def visit_ensure_node(node); end
|
2861
|
+
|
2862
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#265
|
2863
|
+
sig { override.params(node: ::Prism::FalseNode).void }
|
2864
|
+
def visit_false_node(node); end
|
2865
|
+
|
2866
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#270
|
2867
|
+
sig { override.params(node: ::Prism::FindPatternNode).void }
|
2868
|
+
def visit_find_pattern_node(node); end
|
2869
|
+
|
2870
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#275
|
2871
|
+
sig { override.params(node: ::Prism::FlipFlopNode).void }
|
2872
|
+
def visit_flip_flop_node(node); end
|
2873
|
+
|
2874
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#280
|
2875
|
+
sig { override.params(node: ::Prism::FloatNode).void }
|
2876
|
+
def visit_float_node(node); end
|
2877
|
+
|
2878
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#285
|
2879
|
+
sig { override.params(node: ::Prism::ForNode).void }
|
2880
|
+
def visit_for_node(node); end
|
2881
|
+
|
2882
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#290
|
2883
|
+
sig { override.params(node: ::Prism::ForwardingArgumentsNode).void }
|
2884
|
+
def visit_forwarding_arguments_node(node); end
|
2885
|
+
|
2886
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#295
|
2887
|
+
sig { override.params(node: ::Prism::ForwardingParameterNode).void }
|
2888
|
+
def visit_forwarding_parameter_node(node); end
|
2889
|
+
|
2890
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#300
|
2891
|
+
sig { override.params(node: ::Prism::ForwardingSuperNode).void }
|
2892
|
+
def visit_forwarding_super_node(node); end
|
2893
|
+
|
2894
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#305
|
2895
|
+
sig { override.params(node: ::Prism::GlobalVariableAndWriteNode).void }
|
2896
|
+
def visit_global_variable_and_write_node(node); end
|
2897
|
+
|
2898
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#310
|
2899
|
+
sig { override.params(node: ::Prism::GlobalVariableOperatorWriteNode).void }
|
2900
|
+
def visit_global_variable_operator_write_node(node); end
|
2901
|
+
|
2902
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#315
|
2903
|
+
sig { override.params(node: ::Prism::GlobalVariableOrWriteNode).void }
|
2904
|
+
def visit_global_variable_or_write_node(node); end
|
2905
|
+
|
2906
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#320
|
2907
|
+
sig { override.params(node: ::Prism::GlobalVariableReadNode).void }
|
2908
|
+
def visit_global_variable_read_node(node); end
|
2909
|
+
|
2910
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#325
|
2911
|
+
sig { override.params(node: ::Prism::GlobalVariableTargetNode).void }
|
2912
|
+
def visit_global_variable_target_node(node); end
|
2913
|
+
|
2914
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#330
|
2915
|
+
sig { override.params(node: ::Prism::GlobalVariableWriteNode).void }
|
2916
|
+
def visit_global_variable_write_node(node); end
|
2917
|
+
|
2918
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#335
|
2919
|
+
sig { override.params(node: ::Prism::HashNode).void }
|
2920
|
+
def visit_hash_node(node); end
|
2921
|
+
|
2922
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#340
|
2923
|
+
sig { override.params(node: ::Prism::HashPatternNode).void }
|
2924
|
+
def visit_hash_pattern_node(node); end
|
2925
|
+
|
2926
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#345
|
2927
|
+
sig { override.params(node: ::Prism::IfNode).void }
|
2928
|
+
def visit_if_node(node); end
|
2929
|
+
|
2930
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#350
|
2931
|
+
sig { override.params(node: ::Prism::ImaginaryNode).void }
|
2932
|
+
def visit_imaginary_node(node); end
|
2933
|
+
|
2934
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#355
|
2935
|
+
sig { override.params(node: ::Prism::ImplicitNode).void }
|
2936
|
+
def visit_implicit_node(node); end
|
2937
|
+
|
2938
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#360
|
2939
|
+
sig { override.params(node: ::Prism::ImplicitRestNode).void }
|
2940
|
+
def visit_implicit_rest_node(node); end
|
2941
|
+
|
2942
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#365
|
2943
|
+
sig { override.params(node: ::Prism::InNode).void }
|
2944
|
+
def visit_in_node(node); end
|
2945
|
+
|
2946
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#370
|
2947
|
+
sig { override.params(node: ::Prism::IndexAndWriteNode).void }
|
2948
|
+
def visit_index_and_write_node(node); end
|
2949
|
+
|
2950
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#375
|
2951
|
+
sig { override.params(node: ::Prism::IndexOperatorWriteNode).void }
|
2952
|
+
def visit_index_operator_write_node(node); end
|
2953
|
+
|
2954
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#380
|
2955
|
+
sig { override.params(node: ::Prism::IndexOrWriteNode).void }
|
2956
|
+
def visit_index_or_write_node(node); end
|
2957
|
+
|
2958
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#385
|
2959
|
+
sig { override.params(node: ::Prism::IndexTargetNode).void }
|
2960
|
+
def visit_index_target_node(node); end
|
2961
|
+
|
2962
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#390
|
2963
|
+
sig { override.params(node: ::Prism::InstanceVariableAndWriteNode).void }
|
2964
|
+
def visit_instance_variable_and_write_node(node); end
|
2965
|
+
|
2966
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#395
|
2967
|
+
sig { override.params(node: ::Prism::InstanceVariableOperatorWriteNode).void }
|
2968
|
+
def visit_instance_variable_operator_write_node(node); end
|
2969
|
+
|
2970
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#400
|
2971
|
+
sig { override.params(node: ::Prism::InstanceVariableOrWriteNode).void }
|
2972
|
+
def visit_instance_variable_or_write_node(node); end
|
2973
|
+
|
2974
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#405
|
2975
|
+
sig { override.params(node: ::Prism::InstanceVariableReadNode).void }
|
2976
|
+
def visit_instance_variable_read_node(node); end
|
2977
|
+
|
2978
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#410
|
2979
|
+
sig { override.params(node: ::Prism::InstanceVariableTargetNode).void }
|
2980
|
+
def visit_instance_variable_target_node(node); end
|
2981
|
+
|
2982
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#415
|
2983
|
+
sig { override.params(node: ::Prism::InstanceVariableWriteNode).void }
|
2984
|
+
def visit_instance_variable_write_node(node); end
|
2985
|
+
|
2986
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#420
|
2987
|
+
sig { override.params(node: ::Prism::IntegerNode).void }
|
2988
|
+
def visit_integer_node(node); end
|
2989
|
+
|
2990
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#425
|
2991
|
+
sig { override.params(node: ::Prism::InterpolatedMatchLastLineNode).void }
|
2992
|
+
def visit_interpolated_match_last_line_node(node); end
|
2993
|
+
|
2994
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#430
|
2995
|
+
sig { override.params(node: ::Prism::InterpolatedRegularExpressionNode).void }
|
2996
|
+
def visit_interpolated_regular_expression_node(node); end
|
2997
|
+
|
2998
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#435
|
2999
|
+
sig { override.params(node: ::Prism::InterpolatedStringNode).void }
|
3000
|
+
def visit_interpolated_string_node(node); end
|
3001
|
+
|
3002
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#440
|
3003
|
+
sig { override.params(node: ::Prism::InterpolatedSymbolNode).void }
|
3004
|
+
def visit_interpolated_symbol_node(node); end
|
3005
|
+
|
3006
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#445
|
3007
|
+
sig { override.params(node: ::Prism::InterpolatedXStringNode).void }
|
3008
|
+
def visit_interpolated_x_string_node(node); end
|
3009
|
+
|
3010
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#450
|
3011
|
+
sig { override.params(node: ::Prism::KeywordHashNode).void }
|
3012
|
+
def visit_keyword_hash_node(node); end
|
3013
|
+
|
3014
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#455
|
3015
|
+
sig { override.params(node: ::Prism::KeywordRestParameterNode).void }
|
3016
|
+
def visit_keyword_rest_parameter_node(node); end
|
3017
|
+
|
3018
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#460
|
3019
|
+
sig { override.params(node: ::Prism::LambdaNode).void }
|
3020
|
+
def visit_lambda_node(node); end
|
3021
|
+
|
3022
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#465
|
3023
|
+
sig { override.params(node: ::Prism::LocalVariableAndWriteNode).void }
|
3024
|
+
def visit_local_variable_and_write_node(node); end
|
3025
|
+
|
3026
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#470
|
3027
|
+
sig { override.params(node: ::Prism::LocalVariableOperatorWriteNode).void }
|
3028
|
+
def visit_local_variable_operator_write_node(node); end
|
3029
|
+
|
3030
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#475
|
3031
|
+
sig { override.params(node: ::Prism::LocalVariableOrWriteNode).void }
|
3032
|
+
def visit_local_variable_or_write_node(node); end
|
3033
|
+
|
3034
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#480
|
3035
|
+
sig { override.params(node: ::Prism::LocalVariableReadNode).void }
|
3036
|
+
def visit_local_variable_read_node(node); end
|
3037
|
+
|
3038
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#485
|
3039
|
+
sig { override.params(node: ::Prism::LocalVariableTargetNode).void }
|
3040
|
+
def visit_local_variable_target_node(node); end
|
3041
|
+
|
3042
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#490
|
3043
|
+
sig { override.params(node: ::Prism::LocalVariableWriteNode).void }
|
3044
|
+
def visit_local_variable_write_node(node); end
|
3045
|
+
|
3046
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#495
|
3047
|
+
sig { override.params(node: ::Prism::MatchLastLineNode).void }
|
3048
|
+
def visit_match_last_line_node(node); end
|
3049
|
+
|
3050
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#500
|
3051
|
+
sig { override.params(node: ::Prism::MatchPredicateNode).void }
|
3052
|
+
def visit_match_predicate_node(node); end
|
3053
|
+
|
3054
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#505
|
3055
|
+
sig { override.params(node: ::Prism::MatchRequiredNode).void }
|
3056
|
+
def visit_match_required_node(node); end
|
3057
|
+
|
3058
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#510
|
3059
|
+
sig { override.params(node: ::Prism::MatchWriteNode).void }
|
3060
|
+
def visit_match_write_node(node); end
|
3061
|
+
|
3062
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#515
|
3063
|
+
sig { override.params(node: ::Prism::MissingNode).void }
|
3064
|
+
def visit_missing_node(node); end
|
3065
|
+
|
3066
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#520
|
3067
|
+
sig { override.params(node: ::Prism::ModuleNode).void }
|
3068
|
+
def visit_module_node(node); end
|
3069
|
+
|
3070
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#525
|
3071
|
+
sig { override.params(node: ::Prism::MultiTargetNode).void }
|
3072
|
+
def visit_multi_target_node(node); end
|
3073
|
+
|
3074
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#530
|
3075
|
+
sig { override.params(node: ::Prism::MultiWriteNode).void }
|
3076
|
+
def visit_multi_write_node(node); end
|
3077
|
+
|
3078
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#535
|
3079
|
+
sig { override.params(node: ::Prism::NextNode).void }
|
3080
|
+
def visit_next_node(node); end
|
3081
|
+
|
3082
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#540
|
3083
|
+
sig { override.params(node: ::Prism::NilNode).void }
|
3084
|
+
def visit_nil_node(node); end
|
3085
|
+
|
3086
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#545
|
3087
|
+
sig { override.params(node: ::Prism::NoKeywordsParameterNode).void }
|
3088
|
+
def visit_no_keywords_parameter_node(node); end
|
3089
|
+
|
3090
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#550
|
3091
|
+
sig { override.params(node: ::Prism::NumberedParametersNode).void }
|
3092
|
+
def visit_numbered_parameters_node(node); end
|
3093
|
+
|
3094
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#555
|
3095
|
+
sig { override.params(node: ::Prism::NumberedReferenceReadNode).void }
|
3096
|
+
def visit_numbered_reference_read_node(node); end
|
3097
|
+
|
3098
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#560
|
3099
|
+
sig { override.params(node: ::Prism::OptionalKeywordParameterNode).void }
|
3100
|
+
def visit_optional_keyword_parameter_node(node); end
|
3101
|
+
|
3102
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#565
|
3103
|
+
sig { override.params(node: ::Prism::OptionalParameterNode).void }
|
3104
|
+
def visit_optional_parameter_node(node); end
|
3105
|
+
|
3106
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#570
|
3107
|
+
sig { override.params(node: ::Prism::OrNode).void }
|
3108
|
+
def visit_or_node(node); end
|
3109
|
+
|
3110
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#575
|
3111
|
+
sig { override.params(node: ::Prism::ParametersNode).void }
|
3112
|
+
def visit_parameters_node(node); end
|
3113
|
+
|
3114
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#580
|
3115
|
+
sig { override.params(node: ::Prism::ParenthesesNode).void }
|
3116
|
+
def visit_parentheses_node(node); end
|
3117
|
+
|
3118
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#585
|
3119
|
+
sig { override.params(node: ::Prism::PinnedExpressionNode).void }
|
3120
|
+
def visit_pinned_expression_node(node); end
|
3121
|
+
|
3122
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#590
|
3123
|
+
sig { override.params(node: ::Prism::PinnedVariableNode).void }
|
3124
|
+
def visit_pinned_variable_node(node); end
|
3125
|
+
|
3126
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#595
|
3127
|
+
sig { override.params(node: ::Prism::PostExecutionNode).void }
|
3128
|
+
def visit_post_execution_node(node); end
|
3129
|
+
|
3130
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#600
|
3131
|
+
sig { override.params(node: ::Prism::PreExecutionNode).void }
|
3132
|
+
def visit_pre_execution_node(node); end
|
3133
|
+
|
3134
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#605
|
3135
|
+
sig { override.params(node: ::Prism::ProgramNode).void }
|
3136
|
+
def visit_program_node(node); end
|
3137
|
+
|
3138
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#610
|
3139
|
+
sig { override.params(node: ::Prism::RangeNode).void }
|
3140
|
+
def visit_range_node(node); end
|
3141
|
+
|
3142
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#615
|
3143
|
+
sig { override.params(node: ::Prism::RationalNode).void }
|
3144
|
+
def visit_rational_node(node); end
|
3145
|
+
|
3146
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#620
|
3147
|
+
sig { override.params(node: ::Prism::RedoNode).void }
|
3148
|
+
def visit_redo_node(node); end
|
3149
|
+
|
3150
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#625
|
3151
|
+
sig { override.params(node: ::Prism::RegularExpressionNode).void }
|
3152
|
+
def visit_regular_expression_node(node); end
|
3153
|
+
|
3154
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#630
|
3155
|
+
sig { override.params(node: ::Prism::RequiredKeywordParameterNode).void }
|
3156
|
+
def visit_required_keyword_parameter_node(node); end
|
3157
|
+
|
3158
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#635
|
3159
|
+
sig { override.params(node: ::Prism::RequiredParameterNode).void }
|
3160
|
+
def visit_required_parameter_node(node); end
|
3161
|
+
|
3162
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#640
|
3163
|
+
sig { override.params(node: ::Prism::RescueModifierNode).void }
|
3164
|
+
def visit_rescue_modifier_node(node); end
|
3165
|
+
|
3166
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#645
|
3167
|
+
sig { override.params(node: ::Prism::RescueNode).void }
|
3168
|
+
def visit_rescue_node(node); end
|
3169
|
+
|
3170
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#650
|
3171
|
+
sig { override.params(node: ::Prism::RestParameterNode).void }
|
3172
|
+
def visit_rest_parameter_node(node); end
|
3173
|
+
|
3174
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#655
|
3175
|
+
sig { override.params(node: ::Prism::RetryNode).void }
|
3176
|
+
def visit_retry_node(node); end
|
3177
|
+
|
3178
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#660
|
3179
|
+
sig { override.params(node: ::Prism::ReturnNode).void }
|
3180
|
+
def visit_return_node(node); end
|
3181
|
+
|
3182
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#665
|
3183
|
+
sig { override.params(node: ::Prism::SelfNode).void }
|
3184
|
+
def visit_self_node(node); end
|
3185
|
+
|
3186
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#670
|
3187
|
+
sig { override.params(node: ::Prism::SingletonClassNode).void }
|
3188
|
+
def visit_singleton_class_node(node); end
|
3189
|
+
|
3190
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#675
|
3191
|
+
sig { override.params(node: ::Prism::SourceEncodingNode).void }
|
3192
|
+
def visit_source_encoding_node(node); end
|
3193
|
+
|
3194
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#680
|
3195
|
+
sig { override.params(node: ::Prism::SourceFileNode).void }
|
3196
|
+
def visit_source_file_node(node); end
|
3197
|
+
|
3198
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#685
|
3199
|
+
sig { override.params(node: ::Prism::SourceLineNode).void }
|
3200
|
+
def visit_source_line_node(node); end
|
3201
|
+
|
3202
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#690
|
3203
|
+
sig { override.params(node: ::Prism::SplatNode).void }
|
3204
|
+
def visit_splat_node(node); end
|
3205
|
+
|
3206
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#695
|
3207
|
+
sig { override.params(node: ::Prism::StatementsNode).void }
|
3208
|
+
def visit_statements_node(node); end
|
3209
|
+
|
3210
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#700
|
3211
|
+
sig { override.params(node: ::Prism::StringNode).void }
|
3212
|
+
def visit_string_node(node); end
|
3213
|
+
|
3214
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#705
|
3215
|
+
sig { override.params(node: ::Prism::SuperNode).void }
|
3216
|
+
def visit_super_node(node); end
|
3217
|
+
|
3218
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#710
|
3219
|
+
sig { override.params(node: ::Prism::SymbolNode).void }
|
3220
|
+
def visit_symbol_node(node); end
|
3221
|
+
|
3222
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#715
|
3223
|
+
sig { override.params(node: ::Prism::TrueNode).void }
|
3224
|
+
def visit_true_node(node); end
|
3225
|
+
|
3226
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#720
|
3227
|
+
sig { override.params(node: ::Prism::UndefNode).void }
|
3228
|
+
def visit_undef_node(node); end
|
3229
|
+
|
3230
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#725
|
3231
|
+
sig { override.params(node: ::Prism::UnlessNode).void }
|
3232
|
+
def visit_unless_node(node); end
|
3233
|
+
|
3234
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#730
|
3235
|
+
sig { override.params(node: ::Prism::UntilNode).void }
|
3236
|
+
def visit_until_node(node); end
|
3237
|
+
|
3238
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#735
|
3239
|
+
sig { override.params(node: ::Prism::WhenNode).void }
|
3240
|
+
def visit_when_node(node); end
|
3241
|
+
|
3242
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#740
|
3243
|
+
sig { override.params(node: ::Prism::WhileNode).void }
|
3244
|
+
def visit_while_node(node); end
|
3245
|
+
|
3246
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#745
|
3247
|
+
sig { override.params(node: ::Prism::XStringNode).void }
|
3248
|
+
def visit_x_string_node(node); end
|
3249
|
+
|
3250
|
+
# source://spoom//lib/spoom/deadcode/visitor.rb#750
|
3251
|
+
sig { override.params(node: ::Prism::YieldNode).void }
|
3252
|
+
def visit_yield_node(node); end
|
3253
|
+
end
|
3254
|
+
|
2601
3255
|
# source://spoom//lib/spoom.rb#12
|
2602
3256
|
class Spoom::Error < ::StandardError; end
|
2603
3257
|
|
@@ -2613,7 +3267,7 @@ class Spoom::ExecResult < ::T::Struct
|
|
2613
3267
|
def to_s; end
|
2614
3268
|
|
2615
3269
|
class << self
|
2616
|
-
# source://sorbet-runtime/0.5.
|
3270
|
+
# source://sorbet-runtime/0.5.11394/lib/types/struct.rb#13
|
2617
3271
|
def inherited(s); end
|
2618
3272
|
end
|
2619
3273
|
end
|
@@ -2708,16 +3362,10 @@ class Spoom::FileTree
|
|
2708
3362
|
|
2709
3363
|
# Return a map of typing scores for each node in the tree
|
2710
3364
|
#
|
2711
|
-
# source://spoom//lib/spoom/file_tree.rb#
|
3365
|
+
# source://spoom//lib/spoom/file_tree.rb#59
|
2712
3366
|
sig { params(context: ::Spoom::Context).returns(T::Hash[::Spoom::FileTree::Node, ::Float]) }
|
2713
3367
|
def nodes_strictness_scores(context); end
|
2714
3368
|
|
2715
|
-
# Return a map of strictnesses for each node in the tree
|
2716
|
-
#
|
2717
|
-
# source://spoom//lib/spoom/file_tree.rb#59
|
2718
|
-
sig { params(context: ::Spoom::Context).returns(T::Hash[::Spoom::FileTree::Node, T.nilable(::String)]) }
|
2719
|
-
def nodes_strictnesses(context); end
|
2720
|
-
|
2721
3369
|
# All the paths in this tree
|
2722
3370
|
#
|
2723
3371
|
# source://spoom//lib/spoom/file_tree.rb#53
|
@@ -2726,18 +3374,14 @@ class Spoom::FileTree
|
|
2726
3374
|
|
2727
3375
|
# Return a map of typing scores for each path in the tree
|
2728
3376
|
#
|
2729
|
-
# source://spoom//lib/spoom/file_tree.rb#
|
3377
|
+
# source://spoom//lib/spoom/file_tree.rb#67
|
2730
3378
|
sig { params(context: ::Spoom::Context).returns(T::Hash[::String, ::Float]) }
|
2731
3379
|
def paths_strictness_scores(context); end
|
2732
3380
|
|
2733
|
-
# source://spoom//lib/spoom/file_tree.rb#
|
3381
|
+
# source://spoom//lib/spoom/file_tree.rb#72
|
2734
3382
|
sig { params(out: T.any(::IO, ::StringIO), colors: T::Boolean).void }
|
2735
3383
|
def print(out: T.unsafe(nil), colors: T.unsafe(nil)); end
|
2736
3384
|
|
2737
|
-
# source://spoom//lib/spoom/file_tree.rb#86
|
2738
|
-
sig { params(context: ::Spoom::Context, out: T.any(::IO, ::StringIO), colors: T::Boolean).void }
|
2739
|
-
def print_with_strictnesses(context, out: T.unsafe(nil), colors: T.unsafe(nil)); end
|
2740
|
-
|
2741
3385
|
# All root nodes
|
2742
3386
|
#
|
2743
3387
|
# source://spoom//lib/spoom/file_tree.rb#39
|
@@ -2747,68 +3391,68 @@ end
|
|
2747
3391
|
|
2748
3392
|
# A visitor that collects all the nodes in a tree
|
2749
3393
|
#
|
2750
|
-
# source://spoom//lib/spoom/file_tree.rb#
|
3394
|
+
# source://spoom//lib/spoom/file_tree.rb#124
|
2751
3395
|
class Spoom::FileTree::CollectNodes < ::Spoom::FileTree::Visitor
|
2752
|
-
# source://spoom//lib/spoom/file_tree.rb#
|
3396
|
+
# source://spoom//lib/spoom/file_tree.rb#131
|
2753
3397
|
sig { void }
|
2754
3398
|
def initialize; end
|
2755
3399
|
|
2756
|
-
# source://spoom//lib/spoom/file_tree.rb#
|
3400
|
+
# source://spoom//lib/spoom/file_tree.rb#128
|
2757
3401
|
sig { returns(T::Array[::Spoom::FileTree::Node]) }
|
2758
3402
|
def nodes; end
|
2759
3403
|
|
2760
|
-
# source://spoom//lib/spoom/file_tree.rb#
|
3404
|
+
# source://spoom//lib/spoom/file_tree.rb#137
|
2761
3405
|
sig { override.params(node: ::Spoom::FileTree::Node).void }
|
2762
3406
|
def visit_node(node); end
|
2763
3407
|
end
|
2764
3408
|
|
2765
3409
|
# A visitor that collects the typing score of each node in a tree
|
2766
3410
|
#
|
2767
|
-
# source://spoom//lib/spoom/file_tree.rb#
|
3411
|
+
# source://spoom//lib/spoom/file_tree.rb#167
|
2768
3412
|
class Spoom::FileTree::CollectScores < ::Spoom::FileTree::CollectStrictnesses
|
2769
|
-
# source://spoom//lib/spoom/file_tree.rb#
|
3413
|
+
# source://spoom//lib/spoom/file_tree.rb#174
|
2770
3414
|
sig { params(context: ::Spoom::Context).void }
|
2771
3415
|
def initialize(context); end
|
2772
3416
|
|
2773
|
-
# source://spoom//lib/spoom/file_tree.rb#
|
3417
|
+
# source://spoom//lib/spoom/file_tree.rb#171
|
2774
3418
|
sig { returns(T::Hash[::Spoom::FileTree::Node, ::Float]) }
|
2775
3419
|
def scores; end
|
2776
3420
|
|
2777
|
-
# source://spoom//lib/spoom/file_tree.rb#
|
3421
|
+
# source://spoom//lib/spoom/file_tree.rb#181
|
2778
3422
|
sig { override.params(node: ::Spoom::FileTree::Node).void }
|
2779
3423
|
def visit_node(node); end
|
2780
3424
|
|
2781
3425
|
private
|
2782
3426
|
|
2783
|
-
# source://spoom//lib/spoom/file_tree.rb#
|
3427
|
+
# source://spoom//lib/spoom/file_tree.rb#190
|
2784
3428
|
sig { params(node: ::Spoom::FileTree::Node).returns(::Float) }
|
2785
3429
|
def node_score(node); end
|
2786
3430
|
|
2787
|
-
# source://spoom//lib/spoom/file_tree.rb#
|
3431
|
+
# source://spoom//lib/spoom/file_tree.rb#199
|
2788
3432
|
sig { params(strictness: T.nilable(::String)).returns(::Float) }
|
2789
3433
|
def strictness_score(strictness); end
|
2790
3434
|
end
|
2791
3435
|
|
2792
3436
|
# A visitor that collects the strictness of each node in a tree
|
2793
3437
|
#
|
2794
|
-
# source://spoom//lib/spoom/file_tree.rb#
|
3438
|
+
# source://spoom//lib/spoom/file_tree.rb#144
|
2795
3439
|
class Spoom::FileTree::CollectStrictnesses < ::Spoom::FileTree::Visitor
|
2796
|
-
# source://spoom//lib/spoom/file_tree.rb#
|
3440
|
+
# source://spoom//lib/spoom/file_tree.rb#151
|
2797
3441
|
sig { params(context: ::Spoom::Context).void }
|
2798
3442
|
def initialize(context); end
|
2799
3443
|
|
2800
|
-
# source://spoom//lib/spoom/file_tree.rb#
|
3444
|
+
# source://spoom//lib/spoom/file_tree.rb#148
|
2801
3445
|
sig { returns(T::Hash[::Spoom::FileTree::Node, T.nilable(::String)]) }
|
2802
3446
|
def strictnesses; end
|
2803
3447
|
|
2804
|
-
# source://spoom//lib/spoom/file_tree.rb#
|
3448
|
+
# source://spoom//lib/spoom/file_tree.rb#158
|
2805
3449
|
sig { override.params(node: ::Spoom::FileTree::Node).void }
|
2806
3450
|
def visit_node(node); end
|
2807
3451
|
end
|
2808
3452
|
|
2809
3453
|
# A node representing either a file or a directory inside a FileTree
|
2810
3454
|
#
|
2811
|
-
# source://spoom//lib/spoom/file_tree.rb#
|
3455
|
+
# source://spoom//lib/spoom/file_tree.rb#78
|
2812
3456
|
class Spoom::FileTree::Node < ::T::Struct
|
2813
3457
|
const :parent, T.nilable(::Spoom::FileTree::Node)
|
2814
3458
|
const :name, ::String
|
@@ -2816,12 +3460,12 @@ class Spoom::FileTree::Node < ::T::Struct
|
|
2816
3460
|
|
2817
3461
|
# Full path to this node from root
|
2818
3462
|
#
|
2819
|
-
# source://spoom//lib/spoom/file_tree.rb#
|
3463
|
+
# source://spoom//lib/spoom/file_tree.rb#92
|
2820
3464
|
sig { returns(::String) }
|
2821
3465
|
def path; end
|
2822
3466
|
|
2823
3467
|
class << self
|
2824
|
-
# source://sorbet-runtime/0.5.
|
3468
|
+
# source://sorbet-runtime/0.5.11394/lib/types/struct.rb#13
|
2825
3469
|
def inherited(s); end
|
2826
3470
|
end
|
2827
3471
|
end
|
@@ -2830,9 +3474,9 @@ end
|
|
2830
3474
|
#
|
2831
3475
|
# See `FileTree#print`
|
2832
3476
|
#
|
2833
|
-
# source://spoom//lib/spoom/file_tree.rb#
|
3477
|
+
# source://spoom//lib/spoom/file_tree.rb#212
|
2834
3478
|
class Spoom::FileTree::Printer < ::Spoom::FileTree::Visitor
|
2835
|
-
# source://spoom//lib/spoom/file_tree.rb#
|
3479
|
+
# source://spoom//lib/spoom/file_tree.rb#222
|
2836
3480
|
sig do
|
2837
3481
|
params(
|
2838
3482
|
strictnesses: T::Hash[::Spoom::FileTree::Node, T.nilable(::String)],
|
@@ -2842,13 +3486,13 @@ class Spoom::FileTree::Printer < ::Spoom::FileTree::Visitor
|
|
2842
3486
|
end
|
2843
3487
|
def initialize(strictnesses, out: T.unsafe(nil), colors: T.unsafe(nil)); end
|
2844
3488
|
|
2845
|
-
# source://spoom//lib/spoom/file_tree.rb#
|
3489
|
+
# source://spoom//lib/spoom/file_tree.rb#230
|
2846
3490
|
sig { override.params(node: ::Spoom::FileTree::Node).void }
|
2847
3491
|
def visit_node(node); end
|
2848
3492
|
|
2849
3493
|
private
|
2850
3494
|
|
2851
|
-
# source://spoom//lib/spoom/file_tree.rb#
|
3495
|
+
# source://spoom//lib/spoom/file_tree.rb#255
|
2852
3496
|
sig { params(strictness: T.nilable(::String)).returns(::Spoom::Color) }
|
2853
3497
|
def strictness_color(strictness); end
|
2854
3498
|
end
|
@@ -2857,19 +3501,19 @@ end
|
|
2857
3501
|
#
|
2858
3502
|
# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
|
2859
3503
|
#
|
2860
|
-
# source://spoom//lib/spoom/file_tree.rb#
|
3504
|
+
# source://spoom//lib/spoom/file_tree.rb#101
|
2861
3505
|
class Spoom::FileTree::Visitor
|
2862
3506
|
abstract!
|
2863
3507
|
|
2864
|
-
# source://spoom//lib/spoom/file_tree.rb#
|
3508
|
+
# source://spoom//lib/spoom/file_tree.rb#113
|
2865
3509
|
sig { params(node: ::Spoom::FileTree::Node).void }
|
2866
3510
|
def visit_node(node); end
|
2867
3511
|
|
2868
|
-
# source://spoom//lib/spoom/file_tree.rb#
|
3512
|
+
# source://spoom//lib/spoom/file_tree.rb#118
|
2869
3513
|
sig { params(nodes: T::Array[::Spoom::FileTree::Node]).void }
|
2870
3514
|
def visit_nodes(nodes); end
|
2871
3515
|
|
2872
|
-
# source://spoom//lib/spoom/file_tree.rb#
|
3516
|
+
# source://spoom//lib/spoom/file_tree.rb#108
|
2873
3517
|
sig { params(tree: ::Spoom::FileTree).void }
|
2874
3518
|
def visit_tree(tree); end
|
2875
3519
|
end
|
@@ -2887,10 +3531,10 @@ class Spoom::Git::Commit < ::T::Struct
|
|
2887
3531
|
def timestamp; end
|
2888
3532
|
|
2889
3533
|
class << self
|
2890
|
-
# source://sorbet-runtime/0.5.
|
3534
|
+
# source://sorbet-runtime/0.5.11394/lib/types/struct.rb#13
|
2891
3535
|
def inherited(s); end
|
2892
3536
|
|
2893
|
-
# Parse a line
|
3537
|
+
# Parse a line formatted as `%h %at` into a `Commit`
|
2894
3538
|
#
|
2895
3539
|
# source://spoom//lib/spoom/context/git.rb#14
|
2896
3540
|
sig { params(string: ::String).returns(T.nilable(::Spoom::Git::Commit)) }
|
@@ -2984,7 +3628,7 @@ class Spoom::LSP::Diagnostic < ::T::Struct
|
|
2984
3628
|
const :range, ::Spoom::LSP::Range
|
2985
3629
|
const :code, ::Integer
|
2986
3630
|
const :message, ::String
|
2987
|
-
const :
|
3631
|
+
const :information, ::Object
|
2988
3632
|
|
2989
3633
|
# source://spoom//lib/spoom/sorbet/lsp/structures.rb#202
|
2990
3634
|
sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void }
|
@@ -2999,7 +3643,7 @@ class Spoom::LSP::Diagnostic < ::T::Struct
|
|
2999
3643
|
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Diagnostic) }
|
3000
3644
|
def from_json(json); end
|
3001
3645
|
|
3002
|
-
# source://sorbet-runtime/0.5.
|
3646
|
+
# source://sorbet-runtime/0.5.11394/lib/types/struct.rb#13
|
3003
3647
|
def inherited(s); end
|
3004
3648
|
end
|
3005
3649
|
end
|
@@ -3032,7 +3676,7 @@ class Spoom::LSP::DocumentSymbol < ::T::Struct
|
|
3032
3676
|
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::DocumentSymbol) }
|
3033
3677
|
def from_json(json); end
|
3034
3678
|
|
3035
|
-
# source://sorbet-runtime/0.5.
|
3679
|
+
# source://sorbet-runtime/0.5.11394/lib/types/struct.rb#13
|
3036
3680
|
def inherited(s); end
|
3037
3681
|
end
|
3038
3682
|
end
|
@@ -3090,7 +3734,7 @@ class Spoom::LSP::Hover < ::T::Struct
|
|
3090
3734
|
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Hover) }
|
3091
3735
|
def from_json(json); end
|
3092
3736
|
|
3093
|
-
# source://sorbet-runtime/0.5.
|
3737
|
+
# source://sorbet-runtime/0.5.11394/lib/types/struct.rb#13
|
3094
3738
|
def inherited(s); end
|
3095
3739
|
end
|
3096
3740
|
end
|
@@ -3115,7 +3759,7 @@ class Spoom::LSP::Location < ::T::Struct
|
|
3115
3759
|
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Location) }
|
3116
3760
|
def from_json(json); end
|
3117
3761
|
|
3118
|
-
# source://sorbet-runtime/0.5.
|
3762
|
+
# source://sorbet-runtime/0.5.11394/lib/types/struct.rb#13
|
3119
3763
|
def inherited(s); end
|
3120
3764
|
end
|
3121
3765
|
end
|
@@ -3178,7 +3822,7 @@ class Spoom::LSP::Position < ::T::Struct
|
|
3178
3822
|
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Position) }
|
3179
3823
|
def from_json(json); end
|
3180
3824
|
|
3181
|
-
# source://sorbet-runtime/0.5.
|
3825
|
+
# source://sorbet-runtime/0.5.11394/lib/types/struct.rb#13
|
3182
3826
|
def inherited(s); end
|
3183
3827
|
end
|
3184
3828
|
end
|
@@ -3216,7 +3860,7 @@ class Spoom::LSP::Range < ::T::Struct
|
|
3216
3860
|
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Range) }
|
3217
3861
|
def from_json(json); end
|
3218
3862
|
|
3219
|
-
# source://sorbet-runtime/0.5.
|
3863
|
+
# source://sorbet-runtime/0.5.11394/lib/types/struct.rb#13
|
3220
3864
|
def inherited(s); end
|
3221
3865
|
end
|
3222
3866
|
end
|
@@ -3282,7 +3926,7 @@ class Spoom::LSP::SignatureHelp < ::T::Struct
|
|
3282
3926
|
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::SignatureHelp) }
|
3283
3927
|
def from_json(json); end
|
3284
3928
|
|
3285
|
-
# source://sorbet-runtime/0.5.
|
3929
|
+
# source://sorbet-runtime/0.5.11394/lib/types/struct.rb#13
|
3286
3930
|
def inherited(s); end
|
3287
3931
|
end
|
3288
3932
|
end
|