rspec-sorbet 1.8.0 → 1.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +14 -22
  3. data/.gitignore +2 -1
  4. data/CHANGELOG.md +4 -0
  5. data/Gemfile +1 -5
  6. data/bin/tapioca +29 -0
  7. data/lib/rspec/sorbet/doubles.rb +1 -1
  8. data/lib/rspec/sorbet/version.rb +1 -1
  9. data/nix/sources.json +14 -0
  10. data/nix/sources.nix +174 -0
  11. data/run_ci.sh +7 -0
  12. data/shell.nix +20 -0
  13. data/sorbet/config +2 -0
  14. data/sorbet/rbi/gems/{ast.rbi → ast@2.4.2.rbi} +28 -22
  15. data/sorbet/rbi/gems/byebug@11.1.3.rbi +1568 -0
  16. data/sorbet/rbi/gems/coderay@1.1.3.rbi +1005 -0
  17. data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +9 -0
  18. data/sorbet/rbi/gems/docile@1.4.0.rbi +54 -0
  19. data/sorbet/rbi/gems/em-websocket@0.5.2.rbi +8 -0
  20. data/sorbet/rbi/gems/eventmachine@1.2.7.rbi +45 -0
  21. data/sorbet/rbi/gems/ffaker@2.20.0.rbi +3171 -0
  22. data/sorbet/rbi/gems/ffi@1.15.4.rbi +8 -0
  23. data/sorbet/rbi/gems/formatador@0.3.0.rbi +8 -0
  24. data/sorbet/rbi/gems/guard-compat@1.2.1.rbi +31 -0
  25. data/sorbet/rbi/gems/guard-livereload@2.5.2.rbi +8 -0
  26. data/sorbet/rbi/gems/guard-rspec@4.7.3.rbi +211 -0
  27. data/sorbet/rbi/gems/guard@2.18.0.rbi +8 -0
  28. data/sorbet/rbi/gems/http_parser.rb@0.6.0.rbi +8 -0
  29. data/sorbet/rbi/gems/listen@3.7.0.rbi +8 -0
  30. data/sorbet/rbi/gems/lumberjack@1.2.8.rbi +8 -0
  31. data/sorbet/rbi/gems/method_source@1.0.0.rbi +72 -0
  32. data/sorbet/rbi/gems/multi_json@1.15.0.rbi +8 -0
  33. data/sorbet/rbi/gems/nenv@0.3.0.rbi +8 -0
  34. data/sorbet/rbi/gems/notiffany@0.1.3.rbi +8 -0
  35. data/sorbet/rbi/gems/parallel@1.21.0.rbi +113 -0
  36. data/sorbet/rbi/gems/parser@3.0.2.0.rbi +1189 -0
  37. data/sorbet/rbi/gems/pry-byebug@3.8.0.rbi +458 -0
  38. data/sorbet/rbi/gems/{pry.rbi → pry@0.14.1.rbi} +2264 -1727
  39. data/sorbet/rbi/gems/{rainbow.rbi → rainbow@3.0.0.rbi} +90 -55
  40. data/sorbet/rbi/gems/{rake.rbi → rake@13.0.6.rbi} +578 -431
  41. data/sorbet/rbi/gems/rb-fsevent@0.11.0.rbi +8 -0
  42. data/sorbet/rbi/gems/rb-inotify@0.10.1.rbi +8 -0
  43. data/sorbet/rbi/gems/rbi@0.0.6.rbi +1405 -0
  44. data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +1120 -0
  45. data/sorbet/rbi/gems/{rexml.rbi → rexml@3.2.5.rbi} +564 -497
  46. data/sorbet/rbi/gems/{rspec-core.rbi → rspec-core@3.10.1.rbi} +2308 -1766
  47. data/sorbet/rbi/gems/{rspec-expectations.rbi → rspec-expectations@3.10.1.rbi} +1149 -698
  48. data/sorbet/rbi/gems/{rspec-mocks.rbi → rspec-mocks@3.10.2.rbi} +1299 -936
  49. data/sorbet/rbi/gems/rspec-support@3.10.2.rbi +509 -0
  50. data/sorbet/rbi/gems/rspec@3.10.0.rbi +38 -0
  51. data/sorbet/rbi/gems/rubocop-ast@1.12.0.rbi +1938 -0
  52. data/sorbet/rbi/gems/rubocop-rspec@2.5.0.rbi +1786 -0
  53. data/sorbet/rbi/gems/rubocop@1.22.1.rbi +13252 -0
  54. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +405 -0
  55. data/sorbet/rbi/gems/shellany@0.0.1.rbi +8 -0
  56. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +89 -0
  57. data/sorbet/rbi/gems/simplecov@0.21.2.rbi +577 -0
  58. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.3.rbi +8 -0
  59. data/sorbet/rbi/gems/spoom@1.1.5.rbi +1241 -0
  60. data/sorbet/rbi/gems/stackprof@0.2.17.rbi +98 -0
  61. data/sorbet/rbi/gems/tapioca@0.5.2.rbi +949 -0
  62. data/sorbet/rbi/gems/thor@1.1.0.rbi +839 -0
  63. data/sorbet/rbi/gems/unicode-display_width@2.1.0.rbi +26 -0
  64. data/sorbet/rbi/gems/unparser@0.6.0.rbi +8 -0
  65. data/sorbet/tapioca/require.rb +4 -0
  66. metadata +60 -64
  67. data/.reek.yml +0 -32
  68. data/.ruby-version +0 -1
  69. data/sorbet/rbi/gems/activesupport.rbi +0 -1722
  70. data/sorbet/rbi/gems/byebug.rbi +0 -1041
  71. data/sorbet/rbi/gems/coderay.rbi +0 -285
  72. data/sorbet/rbi/gems/concurrent-ruby.rbi +0 -1586
  73. data/sorbet/rbi/gems/docile.rbi +0 -32
  74. data/sorbet/rbi/gems/em-websocket.rbi +0 -225
  75. data/sorbet/rbi/gems/eventmachine.rbi +0 -489
  76. data/sorbet/rbi/gems/ffaker.rbi +0 -60
  77. data/sorbet/rbi/gems/guard.rbi +0 -397
  78. data/sorbet/rbi/gems/http_parser.rb.rbi +0 -37
  79. data/sorbet/rbi/gems/i18n.rbi +0 -133
  80. data/sorbet/rbi/gems/kwalify.rbi +0 -340
  81. data/sorbet/rbi/gems/listen.rbi +0 -324
  82. data/sorbet/rbi/gems/lumberjack.rbi +0 -300
  83. data/sorbet/rbi/gems/method_source.rbi +0 -64
  84. data/sorbet/rbi/gems/multi_json.rbi +0 -62
  85. data/sorbet/rbi/gems/nenv.rbi +0 -60
  86. data/sorbet/rbi/gems/notiffany.rbi +0 -215
  87. data/sorbet/rbi/gems/parallel.rbi +0 -82
  88. data/sorbet/rbi/gems/parser.rbi +0 -1846
  89. data/sorbet/rbi/gems/pry-byebug.rbi +0 -155
  90. data/sorbet/rbi/gems/rb-fsevent.rbi +0 -31
  91. data/sorbet/rbi/gems/rb-readline.rbi +0 -767
  92. data/sorbet/rbi/gems/reek.rbi +0 -1027
  93. data/sorbet/rbi/gems/regexp_parser.rbi +0 -913
  94. data/sorbet/rbi/gems/rspec-support.rbi +0 -280
  95. data/sorbet/rbi/gems/rspec.rbi +0 -15
  96. data/sorbet/rbi/gems/rubocop-ast.rbi +0 -1053
  97. data/sorbet/rbi/gems/rubocop-rspec.rbi +0 -937
  98. data/sorbet/rbi/gems/rubocop.rbi +0 -6841
  99. data/sorbet/rbi/gems/ruby-progressbar.rbi +0 -305
  100. data/sorbet/rbi/gems/shellany.rbi +0 -29
  101. data/sorbet/rbi/gems/shoulda-matchers.rbi +0 -1848
  102. data/sorbet/rbi/gems/simplecov-html.rbi +0 -35
  103. data/sorbet/rbi/gems/simplecov.rbi +0 -361
  104. data/sorbet/rbi/gems/sqlite3.rbi +0 -354
  105. data/sorbet/rbi/gems/stackprof.rbi +0 -52
  106. data/sorbet/rbi/gems/thor.rbi +0 -32
  107. data/sorbet/rbi/gems/thread_safe.rbi +0 -82
  108. data/sorbet/rbi/gems/timecop.rbi +0 -98
  109. data/sorbet/rbi/gems/tzinfo.rbi +0 -406
  110. data/sorbet/rbi/gems/unicode-display_width.rbi +0 -17
  111. data/sorbet/rbi/hidden-definitions/errors.txt +0 -7275
  112. data/sorbet/rbi/hidden-definitions/hidden.rbi +0 -14595
  113. data/sorbet/rbi/sorbet-typed/lib/activesupport/>=6.0.0.rc1/activesupport.rbi +0 -23
  114. data/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +0 -1431
  115. data/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +0 -108
  116. data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +0 -276
  117. data/sorbet/rbi/sorbet-typed/lib/rubocop/~>0.85/rubocop.rbi +0 -2072
  118. data/sorbet/rbi/sorbet-typed/lib/rubocop-rspec/~>1.39/rubocop-rspec.rbi +0 -398
  119. data/sorbet/rbi/todo.rbi +0 -9
@@ -0,0 +1,1005 @@
1
+ # DO NOT EDIT MANUALLY
2
+ # This is an autogenerated file for types exported from the `coderay` gem.
3
+ # Please instead update this file by running `bin/tapioca gem coderay`.
4
+
5
+ # typed: true
6
+
7
+ module CodeRay
8
+ class << self
9
+ def coderay_path(*path); end
10
+ def encode(code, lang, format, options = T.unsafe(nil)); end
11
+ def encode_file(filename, format, options = T.unsafe(nil)); end
12
+ def encode_tokens(tokens, format, options = T.unsafe(nil)); end
13
+ def encoder(format, options = T.unsafe(nil)); end
14
+ def get_scanner_options(options); end
15
+ def highlight(code, lang, options = T.unsafe(nil), format = T.unsafe(nil)); end
16
+ def highlight_file(filename, options = T.unsafe(nil), format = T.unsafe(nil)); end
17
+ def scan(code, lang, options = T.unsafe(nil), &block); end
18
+ def scan_file(filename, lang = T.unsafe(nil), options = T.unsafe(nil), &block); end
19
+ def scanner(lang, options = T.unsafe(nil), &block); end
20
+ end
21
+ end
22
+
23
+ CodeRay::CODERAY_PATH = T.let(T.unsafe(nil), String)
24
+
25
+ class CodeRay::Duo
26
+ def initialize(lang = T.unsafe(nil), format = T.unsafe(nil), options = T.unsafe(nil)); end
27
+
28
+ def call(code, options = T.unsafe(nil)); end
29
+ def encode(code, options = T.unsafe(nil)); end
30
+ def encoder; end
31
+ def format; end
32
+ def format=(_arg0); end
33
+ def highlight(code, options = T.unsafe(nil)); end
34
+ def lang; end
35
+ def lang=(_arg0); end
36
+ def options; end
37
+ def options=(_arg0); end
38
+ def scanner; end
39
+
40
+ class << self
41
+ def [](*_arg0); end
42
+ end
43
+ end
44
+
45
+ module CodeRay::Encoders
46
+ extend ::CodeRay::PluginHost
47
+ end
48
+
49
+ class CodeRay::Encoders::CommentFilter < ::CodeRay::Encoders::TokenKindFilter; end
50
+ CodeRay::Encoders::CommentFilter::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
51
+
52
+ class CodeRay::Encoders::Count < ::CodeRay::Encoders::Encoder
53
+ def begin_group(kind); end
54
+ def begin_line(kind); end
55
+ def end_group(kind); end
56
+ def end_line(kind); end
57
+ def text_token(text, kind); end
58
+
59
+ protected
60
+
61
+ def finish(options); end
62
+ def setup(options); end
63
+ end
64
+
65
+ class CodeRay::Encoders::Debug < ::CodeRay::Encoders::Encoder
66
+ def begin_group(kind); end
67
+ def begin_line(kind); end
68
+ def end_group(kind); end
69
+ def end_line(kind); end
70
+ def text_token(text, kind); end
71
+ end
72
+
73
+ CodeRay::Encoders::Debug::FILE_EXTENSION = T.let(T.unsafe(nil), String)
74
+
75
+ class CodeRay::Encoders::DebugLint < ::CodeRay::Encoders::Debug
76
+ def begin_group(kind); end
77
+ def begin_line(kind); end
78
+ def end_group(kind); end
79
+ def end_line(kind); end
80
+ def text_token(text, kind); end
81
+
82
+ protected
83
+
84
+ def finish(options); end
85
+ def setup(options); end
86
+ end
87
+
88
+ class CodeRay::Encoders::Div < ::CodeRay::Encoders::HTML; end
89
+ CodeRay::Encoders::Div::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
90
+ CodeRay::Encoders::Div::FILE_EXTENSION = T.let(T.unsafe(nil), String)
91
+
92
+ class CodeRay::Encoders::Encoder
93
+ extend ::CodeRay::Plugin
94
+
95
+ def initialize(options = T.unsafe(nil)); end
96
+
97
+ def <<(token); end
98
+ def begin_group(kind); end
99
+ def begin_line(kind); end
100
+ def encode(code, lang, options = T.unsafe(nil)); end
101
+ def encode_tokens(tokens, options = T.unsafe(nil)); end
102
+ def end_group(kind); end
103
+ def end_line(kind); end
104
+ def file_extension; end
105
+ def highlight(code, lang, options = T.unsafe(nil)); end
106
+ def options; end
107
+ def options=(_arg0); end
108
+ def scanner; end
109
+ def scanner=(_arg0); end
110
+ def text_token(text, kind); end
111
+ def token(content, kind); end
112
+ def tokens(tokens, options = T.unsafe(nil)); end
113
+
114
+ protected
115
+
116
+ def compile(tokens, options = T.unsafe(nil)); end
117
+ def finish(options); end
118
+ def get_output(options); end
119
+ def output(data); end
120
+ def setup(options); end
121
+
122
+ class << self
123
+ def const_missing(sym); end
124
+ def file_extension; end
125
+ end
126
+ end
127
+
128
+ CodeRay::Encoders::Encoder::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
129
+ CodeRay::Encoders::Encoder::PLUGIN_HOST = CodeRay::Encoders
130
+
131
+ class CodeRay::Encoders::Filter < ::CodeRay::Encoders::Encoder
132
+ def begin_group(kind); end
133
+ def begin_line(kind); end
134
+ def end_group(kind); end
135
+ def end_line(kind); end
136
+ def text_token(text, kind); end
137
+
138
+ protected
139
+
140
+ def finish(options); end
141
+ def setup(options); end
142
+ end
143
+
144
+ class CodeRay::Encoders::HTML < ::CodeRay::Encoders::Encoder
145
+ def begin_group(kind); end
146
+ def begin_line(kind); end
147
+ def css; end
148
+ def end_group(kind); end
149
+ def end_line(kind); end
150
+ def text_token(text, kind); end
151
+
152
+ protected
153
+
154
+ def break_lines(text, style); end
155
+ def check_group_nesting(name, kind); end
156
+ def check_options!(options); end
157
+ def close_span; end
158
+ def css_class_for_kinds(kinds); end
159
+ def finish(options); end
160
+ def make_span_for_kinds(method, hint); end
161
+ def setup(options); end
162
+ def style_for_kinds(kinds); end
163
+
164
+ class << self
165
+ def make_html_escape_hash; end
166
+ def token_path_to_hint(hint, kinds); end
167
+ end
168
+ end
169
+
170
+ class CodeRay::Encoders::HTML::CSS
171
+ def initialize(style = T.unsafe(nil)); end
172
+
173
+ def get_style_for_css_classes(css_classes); end
174
+ def stylesheet; end
175
+
176
+ private
177
+
178
+ def parse(stylesheet); end
179
+
180
+ class << self
181
+ def load_stylesheet(style = T.unsafe(nil)); end
182
+ end
183
+ end
184
+
185
+ CodeRay::Encoders::HTML::CSS::CSS_CLASS_PATTERN = T.let(T.unsafe(nil), Regexp)
186
+ CodeRay::Encoders::HTML::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
187
+ CodeRay::Encoders::HTML::FILE_EXTENSION = T.let(T.unsafe(nil), String)
188
+ CodeRay::Encoders::HTML::HTML_ESCAPE = T.let(T.unsafe(nil), Hash)
189
+ CodeRay::Encoders::HTML::HTML_ESCAPE_PATTERN = T.let(T.unsafe(nil), Regexp)
190
+
191
+ module CodeRay::Encoders::HTML::Numbering
192
+ class << self
193
+ def number!(output, mode = T.unsafe(nil), options = T.unsafe(nil)); end
194
+ end
195
+ end
196
+
197
+ module CodeRay::Encoders::HTML::Output
198
+ def apply_title!(title); end
199
+ def css; end
200
+ def css=(_arg0); end
201
+ def stylesheet(in_tag = T.unsafe(nil)); end
202
+ def wrap!(element, *args); end
203
+ def wrap_in!(template); end
204
+ def wrapped_in; end
205
+ def wrapped_in=(_arg0); end
206
+ def wrapped_in?(element); end
207
+
208
+ class << self
209
+ def extended(o); end
210
+ def make_stylesheet(css, in_tag = T.unsafe(nil)); end
211
+ def page_template_for_css(css); end
212
+ end
213
+ end
214
+
215
+ CodeRay::Encoders::HTML::Output::DIV = T.let(T.unsafe(nil), CodeRay::Encoders::HTML::Output::Template)
216
+ CodeRay::Encoders::HTML::Output::PAGE = T.let(T.unsafe(nil), CodeRay::Encoders::HTML::Output::Template)
217
+ CodeRay::Encoders::HTML::Output::SPAN = T.let(T.unsafe(nil), CodeRay::Encoders::HTML::Output::Template)
218
+ CodeRay::Encoders::HTML::Output::TABLE = T.let(T.unsafe(nil), CodeRay::Encoders::HTML::Output::Template)
219
+
220
+ class CodeRay::Encoders::HTML::Output::Template < ::String
221
+ def apply(target, replacement); end
222
+
223
+ class << self
224
+ def wrap!(str, template, target); end
225
+ end
226
+ end
227
+
228
+ CodeRay::Encoders::HTML::TOKEN_KIND_TO_INFO = T.let(T.unsafe(nil), Hash)
229
+ CodeRay::Encoders::HTML::TRANSPARENT_TOKEN_KINDS = T.let(T.unsafe(nil), Set)
230
+
231
+ class CodeRay::Encoders::JSON < ::CodeRay::Encoders::Encoder
232
+ def begin_group(kind); end
233
+ def begin_line(kind); end
234
+ def end_group(kind); end
235
+ def end_line(kind); end
236
+ def text_token(text, kind); end
237
+
238
+ protected
239
+
240
+ def append(data); end
241
+ def finish(options); end
242
+ def setup(options); end
243
+ end
244
+
245
+ CodeRay::Encoders::JSON::FILE_EXTENSION = T.let(T.unsafe(nil), String)
246
+
247
+ class CodeRay::Encoders::LinesOfCode < ::CodeRay::Encoders::TokenKindFilter
248
+ protected
249
+
250
+ def finish(options); end
251
+ def setup(options); end
252
+ end
253
+
254
+ CodeRay::Encoders::LinesOfCode::NON_EMPTY_LINE = T.let(T.unsafe(nil), Regexp)
255
+
256
+ class CodeRay::Encoders::Lint < ::CodeRay::Encoders::Debug
257
+ def begin_group(kind); end
258
+ def begin_line(kind); end
259
+ def end_group(kind); end
260
+ def end_line(kind); end
261
+ def text_token(text, kind); end
262
+
263
+ protected
264
+
265
+ def finish(options); end
266
+ def setup(options); end
267
+ end
268
+
269
+ class CodeRay::Encoders::Lint::EmptyToken < ::CodeRay::Encoders::Lint::InvalidTokenStream; end
270
+ class CodeRay::Encoders::Lint::IncorrectTokenGroupNesting < ::CodeRay::Encoders::Lint::InvalidTokenStream; end
271
+ class CodeRay::Encoders::Lint::InvalidTokenStream < ::StandardError; end
272
+ class CodeRay::Encoders::Lint::UnknownTokenKind < ::CodeRay::Encoders::Lint::InvalidTokenStream; end
273
+
274
+ class CodeRay::Encoders::Null < ::CodeRay::Encoders::Encoder
275
+ def text_token(text, kind); end
276
+ end
277
+
278
+ class CodeRay::Encoders::Page < ::CodeRay::Encoders::HTML; end
279
+ CodeRay::Encoders::Page::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
280
+ CodeRay::Encoders::Page::FILE_EXTENSION = T.let(T.unsafe(nil), String)
281
+ class CodeRay::Encoders::Span < ::CodeRay::Encoders::HTML; end
282
+ CodeRay::Encoders::Span::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
283
+ CodeRay::Encoders::Span::FILE_EXTENSION = T.let(T.unsafe(nil), String)
284
+
285
+ class CodeRay::Encoders::Statistic < ::CodeRay::Encoders::Encoder
286
+ def begin_group(kind); end
287
+ def begin_line(kind); end
288
+ def block_token(action, kind); end
289
+ def end_group(kind); end
290
+ def end_line(kind); end
291
+ def real_token_count; end
292
+ def text_token(text, kind); end
293
+ def type_stats; end
294
+
295
+ protected
296
+
297
+ def finish(options); end
298
+ def setup(options); end
299
+ end
300
+
301
+ CodeRay::Encoders::Statistic::STATS = T.let(T.unsafe(nil), String)
302
+ CodeRay::Encoders::Statistic::TOKEN_TYPES_ROW = T.let(T.unsafe(nil), String)
303
+
304
+ class CodeRay::Encoders::Statistic::TypeStats < ::Struct
305
+ def count; end
306
+ def count=(_); end
307
+ def size; end
308
+ def size=(_); end
309
+
310
+ class << self
311
+ def [](*_arg0); end
312
+ def inspect; end
313
+ def members; end
314
+ def new(*_arg0); end
315
+ end
316
+ end
317
+
318
+ class CodeRay::Encoders::Terminal < ::CodeRay::Encoders::Encoder
319
+ def begin_group(kind); end
320
+ def begin_line(kind); end
321
+ def end_group(kind); end
322
+ def end_line(kind); end
323
+ def text_token(text, kind); end
324
+
325
+ protected
326
+
327
+ def setup(options); end
328
+
329
+ private
330
+
331
+ def open_token(kind); end
332
+ end
333
+
334
+ CodeRay::Encoders::Terminal::TOKEN_COLORS = T.let(T.unsafe(nil), Hash)
335
+
336
+ class CodeRay::Encoders::Text < ::CodeRay::Encoders::Encoder
337
+ def text_token(text, kind); end
338
+
339
+ protected
340
+
341
+ def setup(options); end
342
+ end
343
+
344
+ CodeRay::Encoders::Text::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
345
+ CodeRay::Encoders::Text::FILE_EXTENSION = T.let(T.unsafe(nil), String)
346
+
347
+ class CodeRay::Encoders::TokenKindFilter < ::CodeRay::Encoders::Filter
348
+ def begin_group(kind); end
349
+ def begin_line(kind); end
350
+ def end_group(kind); end
351
+ def end_line(kind); end
352
+ def text_token(text, kind); end
353
+
354
+ protected
355
+
356
+ def include_group?(kind); end
357
+ def include_text_token?(text, kind); end
358
+ def setup(options); end
359
+ end
360
+
361
+ CodeRay::Encoders::TokenKindFilter::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
362
+
363
+ class CodeRay::Encoders::XML < ::CodeRay::Encoders::Encoder
364
+ def begin_group(kind); end
365
+ def end_group(kind); end
366
+ def text_token(text, kind); end
367
+
368
+ protected
369
+
370
+ def finish(options); end
371
+ def setup(options); end
372
+ end
373
+
374
+ CodeRay::Encoders::XML::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
375
+ CodeRay::Encoders::XML::FILE_EXTENSION = T.let(T.unsafe(nil), String)
376
+
377
+ class CodeRay::Encoders::YAML < ::CodeRay::Encoders::Encoder
378
+ def begin_group(kind); end
379
+ def begin_line(kind); end
380
+ def end_group(kind); end
381
+ def end_line(kind); end
382
+ def text_token(text, kind); end
383
+
384
+ protected
385
+
386
+ def finish(options); end
387
+ def setup(options); end
388
+ end
389
+
390
+ CodeRay::Encoders::YAML::FILE_EXTENSION = T.let(T.unsafe(nil), String)
391
+
392
+ module CodeRay::FileType
393
+ class << self
394
+ def [](filename, read_shebang = T.unsafe(nil)); end
395
+ def fetch(filename, default = T.unsafe(nil), read_shebang = T.unsafe(nil)); end
396
+
397
+ protected
398
+
399
+ def type_from_shebang(filename); end
400
+ end
401
+ end
402
+
403
+ CodeRay::FileType::TypeFromExt = T.let(T.unsafe(nil), Hash)
404
+ CodeRay::FileType::TypeFromName = T.let(T.unsafe(nil), Hash)
405
+ CodeRay::FileType::TypeFromShebang = T.let(T.unsafe(nil), Regexp)
406
+ class CodeRay::FileType::UnknownFileType < ::Exception; end
407
+
408
+ module CodeRay::Plugin
409
+ def aliases; end
410
+ def plugin_host(host = T.unsafe(nil)); end
411
+ def plugin_id; end
412
+ def register_for(id); end
413
+ def title(title = T.unsafe(nil)); end
414
+ end
415
+
416
+ module CodeRay::PluginHost
417
+ def [](id, *args, &blk); end
418
+ def all_plugins; end
419
+ def const_missing(const); end
420
+ def default(id = T.unsafe(nil)); end
421
+ def list; end
422
+ def load(id, *args, &blk); end
423
+ def load_all; end
424
+ def load_plugin_map; end
425
+ def map(hash); end
426
+ def plugin_hash; end
427
+ def plugin_path(*args); end
428
+ def register(plugin, id); end
429
+
430
+ protected
431
+
432
+ def make_plugin_hash; end
433
+ def path_to(plugin_id); end
434
+ def validate_id(id); end
435
+
436
+ class << self
437
+ def extended(mod); end
438
+ end
439
+ end
440
+
441
+ class CodeRay::PluginHost::HostNotFound < ::LoadError; end
442
+ CodeRay::PluginHost::PLUGIN_HOSTS = T.let(T.unsafe(nil), Array)
443
+ CodeRay::PluginHost::PLUGIN_HOSTS_BY_ID = T.let(T.unsafe(nil), Hash)
444
+ class CodeRay::PluginHost::PluginNotFound < ::LoadError; end
445
+
446
+ module CodeRay::Scanners
447
+ extend ::CodeRay::PluginHost
448
+ end
449
+
450
+ class CodeRay::Scanners::C < ::CodeRay::Scanners::Scanner
451
+ protected
452
+
453
+ def scan_tokens(encoder, options); end
454
+ end
455
+
456
+ CodeRay::Scanners::C::DIRECTIVES = T.let(T.unsafe(nil), Array)
457
+ CodeRay::Scanners::C::ESCAPE = T.let(T.unsafe(nil), Regexp)
458
+ CodeRay::Scanners::C::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
459
+ CodeRay::Scanners::C::KEYWORDS = T.let(T.unsafe(nil), Array)
460
+ CodeRay::Scanners::C::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array)
461
+ CodeRay::Scanners::C::PREDEFINED_TYPES = T.let(T.unsafe(nil), Array)
462
+ CodeRay::Scanners::C::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp)
463
+ CodeRay::Scanners::CPlusPlus = CodeRay::Scanners::Text
464
+
465
+ class CodeRay::Scanners::CSS < ::CodeRay::Scanners::Scanner
466
+ protected
467
+
468
+ def scan_tokens(encoder, options); end
469
+ def setup; end
470
+ end
471
+
472
+ CodeRay::Scanners::CSS::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array)
473
+ module CodeRay::Scanners::CSS::RE; end
474
+ CodeRay::Scanners::CSS::RE::AtKeyword = T.let(T.unsafe(nil), Regexp)
475
+ CodeRay::Scanners::CSS::RE::AttributeSelector = T.let(T.unsafe(nil), Regexp)
476
+ CodeRay::Scanners::CSS::RE::Class = T.let(T.unsafe(nil), Regexp)
477
+ CodeRay::Scanners::CSS::RE::Dimension = T.let(T.unsafe(nil), Regexp)
478
+ CodeRay::Scanners::CSS::RE::Escape = T.let(T.unsafe(nil), Regexp)
479
+ CodeRay::Scanners::CSS::RE::Function = T.let(T.unsafe(nil), Regexp)
480
+ CodeRay::Scanners::CSS::RE::Hex = T.let(T.unsafe(nil), Regexp)
481
+ CodeRay::Scanners::CSS::RE::HexColor = T.let(T.unsafe(nil), Regexp)
482
+ CodeRay::Scanners::CSS::RE::Id = T.let(T.unsafe(nil), Regexp)
483
+ CodeRay::Scanners::CSS::RE::Ident = T.let(T.unsafe(nil), Regexp)
484
+ CodeRay::Scanners::CSS::RE::NMChar = T.let(T.unsafe(nil), Regexp)
485
+ CodeRay::Scanners::CSS::RE::NMStart = T.let(T.unsafe(nil), Regexp)
486
+ CodeRay::Scanners::CSS::RE::Name = T.let(T.unsafe(nil), Regexp)
487
+ CodeRay::Scanners::CSS::RE::Num = T.let(T.unsafe(nil), Regexp)
488
+ CodeRay::Scanners::CSS::RE::Percentage = T.let(T.unsafe(nil), Regexp)
489
+ CodeRay::Scanners::CSS::RE::PseudoClass = T.let(T.unsafe(nil), Regexp)
490
+ CodeRay::Scanners::CSS::RE::String = T.let(T.unsafe(nil), Regexp)
491
+ CodeRay::Scanners::CSS::RE::String1 = T.let(T.unsafe(nil), Regexp)
492
+ CodeRay::Scanners::CSS::RE::String2 = T.let(T.unsafe(nil), Regexp)
493
+ CodeRay::Scanners::CSS::RE::Unicode = T.let(T.unsafe(nil), Regexp)
494
+ CodeRay::Scanners::CSS::RE::Unit = T.let(T.unsafe(nil), Regexp)
495
+
496
+ class CodeRay::Scanners::Clojure < ::CodeRay::Scanners::Scanner
497
+ protected
498
+
499
+ def scan_tokens(encoder, options); end
500
+ end
501
+
502
+ CodeRay::Scanners::Clojure::BASIC_IDENTIFIER = T.let(T.unsafe(nil), Regexp)
503
+ CodeRay::Scanners::Clojure::COMPLEX10 = T.let(T.unsafe(nil), Regexp)
504
+ CodeRay::Scanners::Clojure::COMPLEX16 = T.let(T.unsafe(nil), Regexp)
505
+ CodeRay::Scanners::Clojure::COMPLEX2 = T.let(T.unsafe(nil), Regexp)
506
+ CodeRay::Scanners::Clojure::COMPLEX8 = T.let(T.unsafe(nil), Regexp)
507
+ CodeRay::Scanners::Clojure::CORE_FORMS = T.let(T.unsafe(nil), Array)
508
+ CodeRay::Scanners::Clojure::DECIMAL = T.let(T.unsafe(nil), Regexp)
509
+ CodeRay::Scanners::Clojure::DIGIT = T.let(T.unsafe(nil), Regexp)
510
+ CodeRay::Scanners::Clojure::DIGIT10 = T.let(T.unsafe(nil), Regexp)
511
+ CodeRay::Scanners::Clojure::DIGIT16 = T.let(T.unsafe(nil), Regexp)
512
+ CodeRay::Scanners::Clojure::DIGIT2 = T.let(T.unsafe(nil), Regexp)
513
+ CodeRay::Scanners::Clojure::DIGIT8 = T.let(T.unsafe(nil), Regexp)
514
+ CodeRay::Scanners::Clojure::EXACTNESS = T.let(T.unsafe(nil), Regexp)
515
+ CodeRay::Scanners::Clojure::EXP = T.let(T.unsafe(nil), Regexp)
516
+ CodeRay::Scanners::Clojure::EXP_MARK = T.let(T.unsafe(nil), Regexp)
517
+ CodeRay::Scanners::Clojure::IDENTIFIER = T.let(T.unsafe(nil), Regexp)
518
+ CodeRay::Scanners::Clojure::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
519
+ CodeRay::Scanners::Clojure::IMAG10 = T.let(T.unsafe(nil), Regexp)
520
+ CodeRay::Scanners::Clojure::IMAG16 = T.let(T.unsafe(nil), Regexp)
521
+ CodeRay::Scanners::Clojure::IMAG2 = T.let(T.unsafe(nil), Regexp)
522
+ CodeRay::Scanners::Clojure::IMAG8 = T.let(T.unsafe(nil), Regexp)
523
+ CodeRay::Scanners::Clojure::KEYWORD_NEXT_TOKEN_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
524
+ CodeRay::Scanners::Clojure::NUM = T.let(T.unsafe(nil), Regexp)
525
+ CodeRay::Scanners::Clojure::NUM10 = T.let(T.unsafe(nil), Regexp)
526
+ CodeRay::Scanners::Clojure::NUM16 = T.let(T.unsafe(nil), Regexp)
527
+ CodeRay::Scanners::Clojure::NUM2 = T.let(T.unsafe(nil), Regexp)
528
+ CodeRay::Scanners::Clojure::NUM8 = T.let(T.unsafe(nil), Regexp)
529
+ CodeRay::Scanners::Clojure::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array)
530
+ CodeRay::Scanners::Clojure::PREFIX10 = T.let(T.unsafe(nil), Regexp)
531
+ CodeRay::Scanners::Clojure::PREFIX16 = T.let(T.unsafe(nil), Regexp)
532
+ CodeRay::Scanners::Clojure::PREFIX2 = T.let(T.unsafe(nil), Regexp)
533
+ CodeRay::Scanners::Clojure::PREFIX8 = T.let(T.unsafe(nil), Regexp)
534
+ CodeRay::Scanners::Clojure::RADIX10 = T.let(T.unsafe(nil), Regexp)
535
+ CodeRay::Scanners::Clojure::RADIX16 = T.let(T.unsafe(nil), Regexp)
536
+ CodeRay::Scanners::Clojure::RADIX2 = T.let(T.unsafe(nil), Regexp)
537
+ CodeRay::Scanners::Clojure::RADIX8 = T.let(T.unsafe(nil), Regexp)
538
+ CodeRay::Scanners::Clojure::REAL10 = T.let(T.unsafe(nil), Regexp)
539
+ CodeRay::Scanners::Clojure::REAL16 = T.let(T.unsafe(nil), Regexp)
540
+ CodeRay::Scanners::Clojure::REAL2 = T.let(T.unsafe(nil), Regexp)
541
+ CodeRay::Scanners::Clojure::REAL8 = T.let(T.unsafe(nil), Regexp)
542
+ CodeRay::Scanners::Clojure::SIGN = T.let(T.unsafe(nil), Regexp)
543
+ CodeRay::Scanners::Clojure::SPECIAL_FORMS = T.let(T.unsafe(nil), Array)
544
+ CodeRay::Scanners::Clojure::SUFFIX = T.let(T.unsafe(nil), Regexp)
545
+ CodeRay::Scanners::Clojure::SYMBOL = T.let(T.unsafe(nil), Regexp)
546
+ CodeRay::Scanners::Clojure::UINT10 = T.let(T.unsafe(nil), Regexp)
547
+ CodeRay::Scanners::Clojure::UINT16 = T.let(T.unsafe(nil), Regexp)
548
+ CodeRay::Scanners::Clojure::UINT2 = T.let(T.unsafe(nil), Regexp)
549
+ CodeRay::Scanners::Clojure::UINT8 = T.let(T.unsafe(nil), Regexp)
550
+ CodeRay::Scanners::Clojure::UREAL10 = T.let(T.unsafe(nil), Regexp)
551
+ CodeRay::Scanners::Clojure::UREAL16 = T.let(T.unsafe(nil), Regexp)
552
+ CodeRay::Scanners::Clojure::UREAL2 = T.let(T.unsafe(nil), Regexp)
553
+ CodeRay::Scanners::Clojure::UREAL8 = T.let(T.unsafe(nil), Regexp)
554
+
555
+ class CodeRay::Scanners::Debug < ::CodeRay::Scanners::Scanner
556
+ protected
557
+
558
+ def scan_tokens(encoder, options); end
559
+ def setup; end
560
+ end
561
+
562
+ class CodeRay::Scanners::Delphi < ::CodeRay::Scanners::Scanner
563
+ protected
564
+
565
+ def scan_tokens(encoder, options); end
566
+ end
567
+
568
+ CodeRay::Scanners::Delphi::DIRECTIVES = T.let(T.unsafe(nil), Array)
569
+ CodeRay::Scanners::Delphi::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList::CaseIgnoring)
570
+ CodeRay::Scanners::Delphi::KEYWORDS = T.let(T.unsafe(nil), Array)
571
+ CodeRay::Scanners::Delphi::NAME_FOLLOWS = T.let(T.unsafe(nil), CodeRay::WordList::CaseIgnoring)
572
+
573
+ class CodeRay::Scanners::Diff < ::CodeRay::Scanners::Scanner
574
+ protected
575
+
576
+ def scan_tokens(encoder, options); end
577
+
578
+ private
579
+
580
+ def diff(a, b); end
581
+ end
582
+
583
+ CodeRay::Scanners::Diff::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
584
+
585
+ class CodeRay::Scanners::ERB < ::CodeRay::Scanners::Scanner
586
+ protected
587
+
588
+ def reset_instance; end
589
+ def scan_tokens(encoder, options); end
590
+ def setup; end
591
+ end
592
+
593
+ CodeRay::Scanners::ERB::ERB_RUBY_BLOCK = T.let(T.unsafe(nil), Regexp)
594
+ CodeRay::Scanners::ERB::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array)
595
+ CodeRay::Scanners::ERB::START_OF_ERB = T.let(T.unsafe(nil), Regexp)
596
+
597
+ class CodeRay::Scanners::Go < ::CodeRay::Scanners::Scanner
598
+ protected
599
+
600
+ def scan_tokens(encoder, options); end
601
+ end
602
+
603
+ CodeRay::Scanners::Go::ESCAPE = T.let(T.unsafe(nil), Regexp)
604
+ CodeRay::Scanners::Go::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
605
+ CodeRay::Scanners::Go::KEYWORDS = T.let(T.unsafe(nil), Array)
606
+ CodeRay::Scanners::Go::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array)
607
+ CodeRay::Scanners::Go::PREDEFINED_FUNCTIONS = T.let(T.unsafe(nil), Array)
608
+ CodeRay::Scanners::Go::PREDEFINED_TYPES = T.let(T.unsafe(nil), Array)
609
+ CodeRay::Scanners::Go::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp)
610
+
611
+ class CodeRay::Scanners::Groovy < ::CodeRay::Scanners::Java
612
+ protected
613
+
614
+ def scan_tokens(encoder, options); end
615
+ def setup; end
616
+ end
617
+
618
+ CodeRay::Scanners::Groovy::ESCAPE = T.let(T.unsafe(nil), Regexp)
619
+ CodeRay::Scanners::Groovy::GROOVY_KEYWORDS = T.let(T.unsafe(nil), Array)
620
+ CodeRay::Scanners::Groovy::GROOVY_MAGIC_VARIABLES = T.let(T.unsafe(nil), Array)
621
+ CodeRay::Scanners::Groovy::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
622
+ CodeRay::Scanners::Groovy::KEYWORDS_EXPECTING_VALUE = T.let(T.unsafe(nil), CodeRay::WordList)
623
+ CodeRay::Scanners::Groovy::REGEXP_ESCAPE = T.let(T.unsafe(nil), Regexp)
624
+ CodeRay::Scanners::Groovy::STRING_CONTENT_PATTERN = T.let(T.unsafe(nil), Hash)
625
+ CodeRay::Scanners::Groovy::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp)
626
+
627
+ class CodeRay::Scanners::HAML < ::CodeRay::Scanners::Scanner
628
+ protected
629
+
630
+ def scan_tokens(encoder, options); end
631
+ def setup; end
632
+ end
633
+
634
+ CodeRay::Scanners::HAML::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array)
635
+
636
+ class CodeRay::Scanners::HTML < ::CodeRay::Scanners::Scanner
637
+ def reset; end
638
+
639
+ protected
640
+
641
+ def scan_css(encoder, code, state = T.unsafe(nil)); end
642
+ def scan_java_script(encoder, code); end
643
+ def scan_tokens(encoder, options); end
644
+ def setup; end
645
+ end
646
+
647
+ CodeRay::Scanners::HTML::ATTR_NAME = T.let(T.unsafe(nil), Regexp)
648
+ CodeRay::Scanners::HTML::ENTITY = T.let(T.unsafe(nil), Regexp)
649
+ CodeRay::Scanners::HTML::EVENT_ATTRIBUTES = T.let(T.unsafe(nil), Array)
650
+ CodeRay::Scanners::HTML::HEX = T.let(T.unsafe(nil), Regexp)
651
+ CodeRay::Scanners::HTML::IN_ATTRIBUTE = T.let(T.unsafe(nil), CodeRay::WordList::CaseIgnoring)
652
+ CodeRay::Scanners::HTML::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array)
653
+ CodeRay::Scanners::HTML::PLAIN_STRING_CONTENT = T.let(T.unsafe(nil), Hash)
654
+ CodeRay::Scanners::HTML::TAG_END = T.let(T.unsafe(nil), Regexp)
655
+
656
+ class CodeRay::Scanners::JSON < ::CodeRay::Scanners::Scanner
657
+ protected
658
+
659
+ def scan_tokens(encoder, options); end
660
+ def setup; end
661
+ end
662
+
663
+ CodeRay::Scanners::JSON::ESCAPE = T.let(T.unsafe(nil), Regexp)
664
+ CodeRay::Scanners::JSON::KEY = T.let(T.unsafe(nil), Regexp)
665
+ CodeRay::Scanners::JSON::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array)
666
+ CodeRay::Scanners::JSON::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp)
667
+
668
+ class CodeRay::Scanners::Java < ::CodeRay::Scanners::Scanner
669
+ protected
670
+
671
+ def scan_tokens(encoder, options); end
672
+ end
673
+
674
+ module CodeRay::Scanners::Java::BuiltinTypes; end
675
+ CodeRay::Scanners::Java::BuiltinTypes::List = T.let(T.unsafe(nil), Array)
676
+ CodeRay::Scanners::Java::CONSTANTS = T.let(T.unsafe(nil), Array)
677
+ CodeRay::Scanners::Java::DIRECTIVES = T.let(T.unsafe(nil), Array)
678
+ CodeRay::Scanners::Java::ESCAPE = T.let(T.unsafe(nil), Regexp)
679
+ CodeRay::Scanners::Java::IDENT = T.let(T.unsafe(nil), Regexp)
680
+ CodeRay::Scanners::Java::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
681
+ CodeRay::Scanners::Java::KEYWORDS = T.let(T.unsafe(nil), Array)
682
+ CodeRay::Scanners::Java::MAGIC_VARIABLES = T.let(T.unsafe(nil), Array)
683
+ CodeRay::Scanners::Java::RESERVED = T.let(T.unsafe(nil), Array)
684
+ CodeRay::Scanners::Java::STRING_CONTENT_PATTERN = T.let(T.unsafe(nil), Hash)
685
+ CodeRay::Scanners::Java::TYPES = T.let(T.unsafe(nil), Array)
686
+ CodeRay::Scanners::Java::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp)
687
+
688
+ class CodeRay::Scanners::JavaScript < ::CodeRay::Scanners::Scanner
689
+ protected
690
+
691
+ def reset_instance; end
692
+ def scan_tokens(encoder, options); end
693
+ def setup; end
694
+ def xml_scanner; end
695
+ end
696
+
697
+ CodeRay::Scanners::JavaScript::ESCAPE = T.let(T.unsafe(nil), Regexp)
698
+ CodeRay::Scanners::JavaScript::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
699
+ CodeRay::Scanners::JavaScript::KEYWORDS = T.let(T.unsafe(nil), Array)
700
+ CodeRay::Scanners::JavaScript::KEYWORDS_EXPECTING_VALUE = T.let(T.unsafe(nil), CodeRay::WordList)
701
+ CodeRay::Scanners::JavaScript::KEY_CHECK_PATTERN = T.let(T.unsafe(nil), Hash)
702
+ CodeRay::Scanners::JavaScript::MAGIC_VARIABLES = T.let(T.unsafe(nil), Array)
703
+ CodeRay::Scanners::JavaScript::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array)
704
+ CodeRay::Scanners::JavaScript::REGEXP_ESCAPE = T.let(T.unsafe(nil), Regexp)
705
+ CodeRay::Scanners::JavaScript::RESERVED_WORDS = T.let(T.unsafe(nil), Array)
706
+ CodeRay::Scanners::JavaScript::STRING_CONTENT_PATTERN = T.let(T.unsafe(nil), Hash)
707
+ CodeRay::Scanners::JavaScript::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp)
708
+
709
+ class CodeRay::Scanners::Lua < ::CodeRay::Scanners::Scanner
710
+ protected
711
+
712
+ def scan_tokens(encoder, options); end
713
+ def setup; end
714
+ end
715
+
716
+ CodeRay::Scanners::Lua::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
717
+ CodeRay::Scanners::Lua::KEYWORDS = T.let(T.unsafe(nil), Array)
718
+ CodeRay::Scanners::Lua::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array)
719
+ CodeRay::Scanners::Lua::PREDEFINED_EXPRESSIONS = T.let(T.unsafe(nil), Array)
720
+
721
+ class CodeRay::Scanners::PHP < ::CodeRay::Scanners::Scanner
722
+ protected
723
+
724
+ def reset_instance; end
725
+ def scan_tokens(encoder, options); end
726
+ def setup; end
727
+ end
728
+
729
+ CodeRay::Scanners::PHP::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array)
730
+ module CodeRay::Scanners::PHP::RE; end
731
+ CodeRay::Scanners::PHP::RE::HTML_INDICATOR = T.let(T.unsafe(nil), Regexp)
732
+ CodeRay::Scanners::PHP::RE::IDENTIFIER = T.let(T.unsafe(nil), Regexp)
733
+ CodeRay::Scanners::PHP::RE::OPERATOR = T.let(T.unsafe(nil), Regexp)
734
+ CodeRay::Scanners::PHP::RE::PHP_END = T.let(T.unsafe(nil), Regexp)
735
+ CodeRay::Scanners::PHP::RE::PHP_START = T.let(T.unsafe(nil), Regexp)
736
+ CodeRay::Scanners::PHP::RE::VARIABLE = T.let(T.unsafe(nil), Regexp)
737
+ module CodeRay::Scanners::PHP::Words; end
738
+ CodeRay::Scanners::PHP::Words::BUILTIN_FUNCTIONS = T.let(T.unsafe(nil), Array)
739
+ CodeRay::Scanners::PHP::Words::CLASSES = T.let(T.unsafe(nil), Array)
740
+ CodeRay::Scanners::PHP::Words::CONSTANTS = T.let(T.unsafe(nil), Array)
741
+ CodeRay::Scanners::PHP::Words::EXCEPTIONS = T.let(T.unsafe(nil), Array)
742
+ CodeRay::Scanners::PHP::Words::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList::CaseIgnoring)
743
+ CodeRay::Scanners::PHP::Words::KEYWORDS = T.let(T.unsafe(nil), Array)
744
+ CodeRay::Scanners::PHP::Words::LANGUAGE_CONSTRUCTS = T.let(T.unsafe(nil), Array)
745
+ CodeRay::Scanners::PHP::Words::PREDEFINED = T.let(T.unsafe(nil), Array)
746
+ CodeRay::Scanners::PHP::Words::TYPES = T.let(T.unsafe(nil), Array)
747
+ CodeRay::Scanners::PHP::Words::VARIABLE_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
748
+
749
+ class CodeRay::Scanners::Python < ::CodeRay::Scanners::Scanner
750
+ protected
751
+
752
+ def scan_tokens(encoder, options); end
753
+ end
754
+
755
+ CodeRay::Scanners::Python::DEF_NEW_STATE = T.let(T.unsafe(nil), CodeRay::WordList)
756
+ CodeRay::Scanners::Python::DESCRIPTOR = T.let(T.unsafe(nil), Regexp)
757
+ CodeRay::Scanners::Python::DOCSTRING_COMING = T.let(T.unsafe(nil), Regexp)
758
+ CodeRay::Scanners::Python::ESCAPE = T.let(T.unsafe(nil), Regexp)
759
+ CodeRay::Scanners::Python::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
760
+ CodeRay::Scanners::Python::KEYWORDS = T.let(T.unsafe(nil), Array)
761
+ CodeRay::Scanners::Python::NAME = T.let(T.unsafe(nil), Regexp)
762
+ CodeRay::Scanners::Python::OLD_KEYWORDS = T.let(T.unsafe(nil), Array)
763
+ CodeRay::Scanners::Python::OPERATOR = T.let(T.unsafe(nil), Regexp)
764
+ CodeRay::Scanners::Python::PREDEFINED_EXCEPTIONS = T.let(T.unsafe(nil), Array)
765
+ CodeRay::Scanners::Python::PREDEFINED_METHODS_AND_TYPES = T.let(T.unsafe(nil), Array)
766
+ CodeRay::Scanners::Python::PREDEFINED_VARIABLES_AND_CONSTANTS = T.let(T.unsafe(nil), Array)
767
+ CodeRay::Scanners::Python::STRING_CONTENT_REGEXP = T.let(T.unsafe(nil), Hash)
768
+ CodeRay::Scanners::Python::STRING_DELIMITER_REGEXP = T.let(T.unsafe(nil), Hash)
769
+ CodeRay::Scanners::Python::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp)
770
+
771
+ class CodeRay::Scanners::Raydebug < ::CodeRay::Scanners::Scanner
772
+ protected
773
+
774
+ def scan_tokens(encoder, options); end
775
+ def setup; end
776
+ end
777
+
778
+ class CodeRay::Scanners::Ruby < ::CodeRay::Scanners::Scanner
779
+ def interpreted_string_state; end
780
+
781
+ protected
782
+
783
+ def scan_tokens(encoder, options); end
784
+ def setup; end
785
+ end
786
+
787
+ module CodeRay::Scanners::Ruby::Patterns; end
788
+ CodeRay::Scanners::Ruby::Patterns::BINARY = T.let(T.unsafe(nil), Regexp)
789
+ CodeRay::Scanners::Ruby::Patterns::CHARACTER = T.let(T.unsafe(nil), Regexp)
790
+ CodeRay::Scanners::Ruby::Patterns::CLASS_VARIABLE = T.let(T.unsafe(nil), Regexp)
791
+ CodeRay::Scanners::Ruby::Patterns::CONTROL_META_ESCAPE = T.let(T.unsafe(nil), Regexp)
792
+ CodeRay::Scanners::Ruby::Patterns::DATA = T.let(T.unsafe(nil), Regexp)
793
+ CodeRay::Scanners::Ruby::Patterns::DECIMAL = T.let(T.unsafe(nil), Regexp)
794
+ CodeRay::Scanners::Ruby::Patterns::ESCAPE = T.let(T.unsafe(nil), Regexp)
795
+ CodeRay::Scanners::Ruby::Patterns::EXPONENT = T.let(T.unsafe(nil), Regexp)
796
+ CodeRay::Scanners::Ruby::Patterns::FANCY_STRING_INTERPRETED = T.let(T.unsafe(nil), Hash)
797
+ CodeRay::Scanners::Ruby::Patterns::FANCY_STRING_KIND = T.let(T.unsafe(nil), Hash)
798
+ CodeRay::Scanners::Ruby::Patterns::FANCY_STRING_START = T.let(T.unsafe(nil), Regexp)
799
+ CodeRay::Scanners::Ruby::Patterns::FLOAT_OR_INT = T.let(T.unsafe(nil), Regexp)
800
+ CodeRay::Scanners::Ruby::Patterns::FLOAT_SUFFIX = T.let(T.unsafe(nil), Regexp)
801
+ CodeRay::Scanners::Ruby::Patterns::GLOBAL_VARIABLE = T.let(T.unsafe(nil), Regexp)
802
+ CodeRay::Scanners::Ruby::Patterns::HEREDOC_OPEN = T.let(T.unsafe(nil), Regexp)
803
+ CodeRay::Scanners::Ruby::Patterns::HEXADECIMAL = T.let(T.unsafe(nil), Regexp)
804
+ CodeRay::Scanners::Ruby::Patterns::IDENT = T.let(T.unsafe(nil), Regexp)
805
+ CodeRay::Scanners::Ruby::Patterns::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList)
806
+ CodeRay::Scanners::Ruby::Patterns::INSTANCE_VARIABLE = T.let(T.unsafe(nil), Regexp)
807
+ CodeRay::Scanners::Ruby::Patterns::KEYWORDS = T.let(T.unsafe(nil), Array)
808
+ CodeRay::Scanners::Ruby::Patterns::KEYWORDS_EXPECTING_VALUE = T.let(T.unsafe(nil), CodeRay::WordList)
809
+ CodeRay::Scanners::Ruby::Patterns::KEYWORD_NEW_STATE = T.let(T.unsafe(nil), CodeRay::WordList)
810
+ CodeRay::Scanners::Ruby::Patterns::METHOD_AFTER_DOT = T.let(T.unsafe(nil), Regexp)
811
+ CodeRay::Scanners::Ruby::Patterns::METHOD_NAME = T.let(T.unsafe(nil), Regexp)
812
+ CodeRay::Scanners::Ruby::Patterns::METHOD_NAME_EX = T.let(T.unsafe(nil), Regexp)
813
+ CodeRay::Scanners::Ruby::Patterns::METHOD_NAME_OPERATOR = T.let(T.unsafe(nil), Regexp)
814
+ CodeRay::Scanners::Ruby::Patterns::METHOD_NAME_OR_SYMBOL = T.let(T.unsafe(nil), Regexp)
815
+ CodeRay::Scanners::Ruby::Patterns::METHOD_SUFFIX = T.let(T.unsafe(nil), Regexp)
816
+ CodeRay::Scanners::Ruby::Patterns::NUMERIC = T.let(T.unsafe(nil), Regexp)
817
+ CodeRay::Scanners::Ruby::Patterns::OBJECT_VARIABLE = T.let(T.unsafe(nil), Regexp)
818
+ CodeRay::Scanners::Ruby::Patterns::OCTAL = T.let(T.unsafe(nil), Regexp)
819
+ CodeRay::Scanners::Ruby::Patterns::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array)
820
+ CodeRay::Scanners::Ruby::Patterns::PREFIX_VARIABLE = T.let(T.unsafe(nil), Regexp)
821
+ CodeRay::Scanners::Ruby::Patterns::QUOTE_TO_TYPE = T.let(T.unsafe(nil), Hash)
822
+ CodeRay::Scanners::Ruby::Patterns::REGEXP_MODIFIERS = T.let(T.unsafe(nil), Regexp)
823
+ CodeRay::Scanners::Ruby::Patterns::RUBYDOC = T.let(T.unsafe(nil), Regexp)
824
+ CodeRay::Scanners::Ruby::Patterns::RUBYDOC_OR_DATA = T.let(T.unsafe(nil), Regexp)
825
+ CodeRay::Scanners::Ruby::Patterns::SIMPLE_ESCAPE = T.let(T.unsafe(nil), Regexp)
826
+ CodeRay::Scanners::Ruby::Patterns::SYMBOL = T.let(T.unsafe(nil), Regexp)
827
+ CodeRay::Scanners::Ruby::Patterns::VALUE_FOLLOWS = T.let(T.unsafe(nil), Regexp)
828
+ CodeRay::Scanners::Ruby::Patterns::VARIABLE = T.let(T.unsafe(nil), Regexp)
829
+
830
+ class CodeRay::Scanners::Ruby::StringState < ::Struct
831
+ def initialize(kind, interpreted, delim, heredoc = T.unsafe(nil)); end
832
+
833
+ def heredoc_pattern(delim, interpreted, indented); end
834
+
835
+ class << self
836
+ def simple_key_pattern(delim); end
837
+ end
838
+ end
839
+
840
+ CodeRay::Scanners::Ruby::StringState::CLOSING_PAREN = T.let(T.unsafe(nil), Hash)
841
+ CodeRay::Scanners::Ruby::StringState::STRING_PATTERN = T.let(T.unsafe(nil), Hash)
842
+
843
+ class CodeRay::Scanners::SQL < ::CodeRay::Scanners::Scanner
844
+ def scan_tokens(encoder, options); end
845
+ end
846
+
847
+ CodeRay::Scanners::SQL::COMMANDS = T.let(T.unsafe(nil), Array)
848
+ CodeRay::Scanners::SQL::DIRECTIVES = T.let(T.unsafe(nil), Array)
849
+ CodeRay::Scanners::SQL::ESCAPE = T.let(T.unsafe(nil), Regexp)
850
+ CodeRay::Scanners::SQL::IDENT_KIND = T.let(T.unsafe(nil), CodeRay::WordList::CaseIgnoring)
851
+ CodeRay::Scanners::SQL::KEYWORDS = T.let(T.unsafe(nil), Array)
852
+ CodeRay::Scanners::SQL::OBJECTS = T.let(T.unsafe(nil), Array)
853
+ CodeRay::Scanners::SQL::PREDEFINED_CONSTANTS = T.let(T.unsafe(nil), Array)
854
+ CodeRay::Scanners::SQL::PREDEFINED_FUNCTIONS = T.let(T.unsafe(nil), Array)
855
+ CodeRay::Scanners::SQL::PREDEFINED_TYPES = T.let(T.unsafe(nil), Array)
856
+ CodeRay::Scanners::SQL::STRING_CONTENT_PATTERN = T.let(T.unsafe(nil), Hash)
857
+ CodeRay::Scanners::SQL::STRING_PREFIXES = T.let(T.unsafe(nil), Regexp)
858
+ CodeRay::Scanners::SQL::UNICODE_ESCAPE = T.let(T.unsafe(nil), Regexp)
859
+
860
+ class CodeRay::Scanners::Sass < ::CodeRay::Scanners::CSS
861
+ protected
862
+
863
+ def scan_tokens(encoder, options); end
864
+ def setup; end
865
+ end
866
+
867
+ class CodeRay::Scanners::Scanner < ::StringScanner
868
+ include ::Enumerable
869
+ extend ::CodeRay::Plugin
870
+
871
+ def initialize(code = T.unsafe(nil), options = T.unsafe(nil)); end
872
+
873
+ def binary_string; end
874
+ def column(pos = T.unsafe(nil)); end
875
+ def each(&block); end
876
+ def file_extension; end
877
+ def lang; end
878
+ def line(pos = T.unsafe(nil)); end
879
+ def reset; end
880
+ def state; end
881
+ def state=(_arg0); end
882
+ def string=(code); end
883
+ def tokenize(source = T.unsafe(nil), options = T.unsafe(nil)); end
884
+ def tokens; end
885
+
886
+ protected
887
+
888
+ def raise_inspect(message, tokens, state = T.unsafe(nil), ambit = T.unsafe(nil), backtrace = T.unsafe(nil)); end
889
+ def raise_inspect_arguments(message, tokens, state, ambit); end
890
+ def reset_instance; end
891
+ def scan_rest; end
892
+ def scan_tokens(tokens, options); end
893
+ def scanner_state_info(state); end
894
+ def set_string_from_source(source); end
895
+ def set_tokens_from_options(options); end
896
+ def setup; end
897
+ def tokens_last(tokens, n); end
898
+ def tokens_size(tokens); end
899
+
900
+ class << self
901
+ def encoding(name = T.unsafe(nil)); end
902
+ def file_extension(extension = T.unsafe(nil)); end
903
+ def lang; end
904
+ def normalize(code); end
905
+
906
+ protected
907
+
908
+ def encode_with_encoding(code, target_encoding); end
909
+ def guess_encoding(s); end
910
+ def to_unix(code); end
911
+ end
912
+ end
913
+
914
+ CodeRay::Scanners::Scanner::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
915
+ CodeRay::Scanners::Scanner::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array)
916
+ CodeRay::Scanners::Scanner::PLUGIN_HOST = CodeRay::Scanners
917
+ CodeRay::Scanners::Scanner::SCANNER_STATE_INFO = T.let(T.unsafe(nil), String)
918
+ CodeRay::Scanners::Scanner::SCAN_ERROR_MESSAGE = T.let(T.unsafe(nil), String)
919
+ class CodeRay::Scanners::Scanner::ScanError < ::StandardError; end
920
+
921
+ class CodeRay::Scanners::Taskpaper < ::CodeRay::Scanners::Scanner
922
+ protected
923
+
924
+ def scan_tokens(encoder, options); end
925
+ end
926
+
927
+ class CodeRay::Scanners::Text < ::CodeRay::Scanners::Scanner
928
+ protected
929
+
930
+ def scan_tokens(encoder, options); end
931
+ end
932
+
933
+ CodeRay::Scanners::Text::KINDS_NOT_LOC = T.let(T.unsafe(nil), Array)
934
+ class CodeRay::Scanners::XML < ::CodeRay::Scanners::HTML; end
935
+
936
+ class CodeRay::Scanners::YAML < ::CodeRay::Scanners::Scanner
937
+ protected
938
+
939
+ def scan_tokens(encoder, options); end
940
+ end
941
+
942
+ CodeRay::Scanners::YAML::KINDS_NOT_LOC = T.let(T.unsafe(nil), Symbol)
943
+
944
+ module CodeRay::Styles
945
+ extend ::CodeRay::PluginHost
946
+ end
947
+
948
+ class CodeRay::Styles::Alpha < ::CodeRay::Styles::Style; end
949
+ CodeRay::Styles::Alpha::CSS_MAIN_STYLES = T.let(T.unsafe(nil), String)
950
+ CodeRay::Styles::Alpha::TOKEN_COLORS = T.let(T.unsafe(nil), String)
951
+
952
+ class CodeRay::Styles::Style
953
+ extend ::CodeRay::Plugin
954
+ end
955
+
956
+ CodeRay::Styles::Style::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
957
+ CodeRay::Styles::Style::PLUGIN_HOST = CodeRay::Styles
958
+ CodeRay::TokenKinds = T.let(T.unsafe(nil), Hash)
959
+
960
+ class CodeRay::Tokens < ::Array
961
+ def begin_group(kind); end
962
+ def begin_line(kind); end
963
+ def count; end
964
+ def encode(encoder, options = T.unsafe(nil)); end
965
+ def end_group(kind); end
966
+ def end_line(kind); end
967
+ def method_missing(meth, options = T.unsafe(nil)); end
968
+ def scanner; end
969
+ def scanner=(_arg0); end
970
+ def split_into_parts(*sizes); end
971
+ def text_token(*_arg0); end
972
+ def to_s; end
973
+ def tokens(*_arg0); end
974
+ end
975
+
976
+ class CodeRay::TokensProxy
977
+ def initialize(input, lang, options = T.unsafe(nil), block = T.unsafe(nil)); end
978
+
979
+ def block; end
980
+ def block=(_arg0); end
981
+ def each(*args, &blk); end
982
+ def encode(encoder, options = T.unsafe(nil)); end
983
+ def input; end
984
+ def input=(_arg0); end
985
+ def lang; end
986
+ def lang=(_arg0); end
987
+ def method_missing(method, *args, &blk); end
988
+ def options; end
989
+ def options=(_arg0); end
990
+ def scanner; end
991
+ def tokens; end
992
+ end
993
+
994
+ CodeRay::VERSION = T.let(T.unsafe(nil), String)
995
+
996
+ class CodeRay::WordList < ::Hash
997
+ def initialize(default = T.unsafe(nil)); end
998
+
999
+ def add(words, value = T.unsafe(nil)); end
1000
+ end
1001
+
1002
+ class CodeRay::WordList::CaseIgnoring < ::CodeRay::WordList
1003
+ def [](key); end
1004
+ def []=(key, value); end
1005
+ end