m2m_keygen 0.4.7 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. checksums.yaml +4 -4
  2. data/.overcommit.yml +4 -7
  3. data/.rubocop.yml +19 -16
  4. data/.ruby-version +1 -1
  5. data/.streerc +1 -0
  6. data/.tool-versions +1 -0
  7. data/CHANGELOG.md +73 -1
  8. data/Gemfile +2 -2
  9. data/Gemfile.lock +138 -160
  10. data/README.md +64 -78
  11. data/docs/MIGRATING.md +69 -0
  12. data/docs/SPEC.md +245 -0
  13. data/examples/nonce_store/postgres.rb +40 -0
  14. data/examples/nonce_store/redis.rb +23 -0
  15. data/gemfiles/rack_2.gemfile +5 -0
  16. data/gemfiles/rack_3.gemfile +5 -0
  17. data/lib/m2m_keygen/canonicalizer.rb +57 -0
  18. data/lib/m2m_keygen/nonce_store/disabled.rb +19 -0
  19. data/lib/m2m_keygen/nonce_store/memory.rb +64 -0
  20. data/lib/m2m_keygen/nonce_store.rb +18 -0
  21. data/lib/m2m_keygen/rack_validator.rb +72 -19
  22. data/lib/m2m_keygen/request_signer/signed_request.rb +10 -0
  23. data/lib/m2m_keygen/request_signer.rb +118 -0
  24. data/lib/m2m_keygen/signature.rb +41 -39
  25. data/lib/m2m_keygen/types/params_type.rb +6 -16
  26. data/lib/m2m_keygen/version.rb +1 -1
  27. data/lib/m2m_keygen.rb +6 -0
  28. data/m2m_keygen.gemspec +12 -14
  29. data/sorbet/config +1 -0
  30. data/sorbet/rbi/gems/.gitattributes +1 -0
  31. data/sorbet/rbi/gems/{ast@2.4.2.rbi → ast@2.4.3.rbi} +45 -79
  32. data/sorbet/rbi/gems/{benchmark@0.2.0.rbi → benchmark@0.5.0.rbi} +91 -58
  33. data/sorbet/rbi/gems/bundler-audit@0.9.3.rbi +397 -0
  34. data/sorbet/rbi/gems/byebug@13.0.0.rbi +3651 -0
  35. data/sorbet/rbi/gems/childprocess@5.1.0.rbi +336 -0
  36. data/sorbet/rbi/gems/concurrent-ruby@1.3.7.rbi +384 -0
  37. data/sorbet/rbi/gems/{diff-lcs@1.5.0.rbi → diff-lcs@1.6.2.rbi} +189 -199
  38. data/sorbet/rbi/gems/{docile@1.4.0.rbi → docile@1.4.1.rbi} +147 -147
  39. data/sorbet/rbi/gems/dotenv@3.2.0.rbi +267 -0
  40. data/sorbet/rbi/gems/erubi@1.13.1.rbi +155 -0
  41. data/sorbet/rbi/gems/{faker@2.22.0.rbi → faker@3.8.0.rbi} +8468 -3829
  42. data/sorbet/rbi/gems/{ffi@1.15.5.rbi → ffi@1.17.4.rbi} +1 -0
  43. data/sorbet/rbi/gems/{formatador@1.1.0.rbi → formatador@1.2.3.rbi} +1 -0
  44. data/sorbet/rbi/gems/{guard@2.18.0.rbi → guard@2.20.1.rbi} +1 -0
  45. data/sorbet/rbi/gems/{i18n@1.12.0.rbi → i18n@1.15.2.rbi} +687 -827
  46. data/sorbet/rbi/gems/io-console@0.8.2.rbi +9 -0
  47. data/sorbet/rbi/gems/{json@2.6.2.rbi → json@2.20.0.rbi} +994 -252
  48. data/sorbet/rbi/gems/language_server-protocol@3.17.0.5.rbi +9 -0
  49. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +189 -0
  50. data/sorbet/rbi/gems/listen@3.10.0.rbi +9 -0
  51. data/sorbet/rbi/gems/logger@1.7.0.rbi +896 -0
  52. data/sorbet/rbi/gems/{lumberjack@1.2.8.rbi → lumberjack@1.4.2.rbi} +1 -0
  53. data/sorbet/rbi/gems/{method_source@1.0.0.rbi → method_source@1.1.0.rbi} +111 -90
  54. data/sorbet/rbi/gems/{overcommit@0.59.1.rbi → overcommit@0.71.0.rbi} +503 -647
  55. data/sorbet/rbi/gems/parallel@2.1.0.rbi +321 -0
  56. data/sorbet/rbi/gems/parser@3.3.11.1.rbi +5229 -0
  57. data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +878 -0
  58. data/sorbet/rbi/gems/prism@1.9.0.rbi +42224 -0
  59. data/sorbet/rbi/gems/pry-byebug@3.12.0.rbi +481 -0
  60. data/sorbet/rbi/gems/{pry@0.14.1.rbi → pry@0.16.0.rbi} +2567 -3550
  61. data/sorbet/rbi/gems/{racc@1.6.0.rbi → racc@1.8.1.rbi} +54 -40
  62. data/sorbet/rbi/gems/rack@3.2.6.rbi +4653 -0
  63. data/sorbet/rbi/gems/{rake@13.0.6.rbi → rake@13.4.2.rbi} +963 -732
  64. data/sorbet/rbi/gems/{rb-inotify@0.10.1.rbi → rb-inotify@0.11.1.rbi} +1 -0
  65. data/sorbet/rbi/gems/rbi@0.3.14.rbi +5519 -0
  66. data/sorbet/rbi/gems/rbs@4.0.3.rbi +6908 -0
  67. data/sorbet/rbi/gems/regexp_parser@2.12.0.rbi +3398 -0
  68. data/sorbet/rbi/gems/reline@0.6.3.rbi +2446 -0
  69. data/sorbet/rbi/gems/require-hooks@0.4.0.rbi +152 -0
  70. data/sorbet/rbi/gems/{rexml@3.2.5.rbi → rexml@3.4.4.rbi} +1085 -894
  71. data/sorbet/rbi/gems/rspec-core@3.13.6.rbi +9475 -0
  72. data/sorbet/rbi/gems/rspec-expectations@3.13.5.rbi +6108 -0
  73. data/sorbet/rbi/gems/rspec-mocks@3.13.8.rbi +4787 -0
  74. data/sorbet/rbi/gems/rspec-support@3.13.7.rbi +1274 -0
  75. data/sorbet/rbi/gems/rspec@3.13.2.rbi +15 -0
  76. data/sorbet/rbi/gems/rspec_in_context@1.2.2.rbi +294 -0
  77. data/sorbet/rbi/gems/rubocop-ast@1.49.1.rbi +7140 -0
  78. data/sorbet/rbi/gems/rubocop-faker@1.3.0.rbi +88 -0
  79. data/sorbet/rbi/gems/rubocop-performance@1.26.1.rbi +3403 -0
  80. data/sorbet/rbi/gems/rubocop-sorbet@0.12.0.rbi +2448 -0
  81. data/sorbet/rbi/gems/rubocop@1.88.1.rbi +63103 -0
  82. data/sorbet/rbi/gems/ruby-lsp@0.26.9.rbi +28 -0
  83. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +988 -0
  84. data/sorbet/rbi/gems/rubydex@0.2.7.rbi +836 -0
  85. data/sorbet/rbi/gems/simplecov-html@0.13.2.rbi +90 -0
  86. data/sorbet/rbi/gems/{simplecov@0.21.2.rbi → simplecov@0.22.0.rbi} +438 -578
  87. data/sorbet/rbi/gems/spoom@1.8.2.rbi +6691 -0
  88. data/sorbet/rbi/gems/syntax_tree@6.3.0.rbi +22090 -0
  89. data/sorbet/rbi/gems/tapioca@0.19.2.rbi +3597 -0
  90. data/sorbet/rbi/gems/{thor@1.2.1.rbi → thor@1.5.0.rbi} +1085 -1171
  91. data/sorbet/rbi/gems/tsort@0.2.0.rbi +389 -0
  92. data/sorbet/rbi/gems/unicode-display_width@3.2.0.rbi +130 -0
  93. data/sorbet/rbi/gems/unicode-emoji@4.2.0.rbi +332 -0
  94. data/sorbet/rbi/gems/{yard-sorbet@0.7.0.rbi → yard-sorbet@0.9.0.rbi} +142 -99
  95. data/sorbet/rbi/gems/{yard@0.9.28.rbi → yard@0.9.44.rbi} +5350 -6316
  96. data/sorbet/rbi/gems/zeitwerk@2.8.2.rbi +1178 -0
  97. metadata +106 -111
  98. data/.prettierrc.js +0 -4
  99. data/docs/M2mKeygen/Error.html +0 -135
  100. data/docs/M2mKeygen/ParamsEncoder.html +0 -321
  101. data/docs/M2mKeygen/RackValidator.html +0 -533
  102. data/docs/M2mKeygen/Signature.html +0 -680
  103. data/docs/M2mKeygen/Types.html +0 -147
  104. data/docs/M2mKeygen.html +0 -157
  105. data/docs/_index.html +0 -182
  106. data/docs/class_list.html +0 -51
  107. data/docs/css/common.css +0 -1
  108. data/docs/css/full_list.css +0 -58
  109. data/docs/css/style.css +0 -497
  110. data/docs/file.README.html +0 -230
  111. data/docs/file_list.html +0 -56
  112. data/docs/frames.html +0 -17
  113. data/docs/index.html +0 -230
  114. data/docs/js/app.js +0 -314
  115. data/docs/js/full_list.js +0 -216
  116. data/docs/js/jquery.js +0 -4
  117. data/docs/method_list.html +0 -139
  118. data/docs/top-level-namespace.html +0 -110
  119. data/lib/m2m_keygen/params_encoder.rb +0 -56
  120. data/package.json +0 -12
  121. data/sig/m2m_keygen.rbs +0 -4
  122. data/sorbet/rbi/gems/activesupport@7.0.3.1.rbi +0 -18608
  123. data/sorbet/rbi/gems/backport@1.2.0.rbi +0 -522
  124. data/sorbet/rbi/gems/bundler-audit@0.9.1.rbi +0 -308
  125. data/sorbet/rbi/gems/byebug@11.1.3.rbi +0 -3603
  126. data/sorbet/rbi/gems/childprocess@4.1.0.rbi +0 -401
  127. data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +0 -11581
  128. data/sorbet/rbi/gems/dotenv@2.8.1.rbi +0 -234
  129. data/sorbet/rbi/gems/e2mmap@0.1.0.rbi +0 -8
  130. data/sorbet/rbi/gems/haml@5.2.2.rbi +0 -3190
  131. data/sorbet/rbi/gems/jaro_winkler@1.5.4.rbi +0 -19
  132. data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +0 -133
  133. data/sorbet/rbi/gems/kramdown@2.4.0.rbi +0 -3261
  134. data/sorbet/rbi/gems/listen@3.7.1.rbi +0 -1181
  135. data/sorbet/rbi/gems/minitest@5.16.3.rbi +0 -1459
  136. data/sorbet/rbi/gems/nokogiri@1.13.8.rbi +0 -6514
  137. data/sorbet/rbi/gems/parallel@1.22.1.rbi +0 -277
  138. data/sorbet/rbi/gems/parser@3.1.2.1.rbi +0 -6826
  139. data/sorbet/rbi/gems/prettier@3.2.0.rbi +0 -22
  140. data/sorbet/rbi/gems/prettier_print@0.1.0.rbi +0 -8
  141. data/sorbet/rbi/gems/pry-byebug@3.10.1.rbi +0 -1222
  142. data/sorbet/rbi/gems/rack@2.2.4.rbi +0 -5630
  143. data/sorbet/rbi/gems/rbi@0.0.15.rbi +0 -3007
  144. data/sorbet/rbi/gems/rbs@2.6.0.rbi +0 -8
  145. data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +0 -3366
  146. data/sorbet/rbi/gems/reverse_markdown@2.1.1.rbi +0 -389
  147. data/sorbet/rbi/gems/rspec-core@3.11.0.rbi +0 -10786
  148. data/sorbet/rbi/gems/rspec-expectations@3.11.0.rbi +0 -8170
  149. data/sorbet/rbi/gems/rspec-mocks@3.11.1.rbi +0 -5385
  150. data/sorbet/rbi/gems/rspec-support@3.11.0.rbi +0 -1746
  151. data/sorbet/rbi/gems/rspec@3.11.0.rbi +0 -187
  152. data/sorbet/rbi/gems/rspec_in_context@1.1.0.3.rbi +0 -1113
  153. data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +0 -7044
  154. data/sorbet/rbi/gems/rubocop-faker@1.1.0.rbi +0 -106
  155. data/sorbet/rbi/gems/rubocop-performance@1.14.3.rbi +0 -2982
  156. data/sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi +0 -990
  157. data/sorbet/rbi/gems/rubocop@1.35.1.rbi +0 -52002
  158. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +0 -1239
  159. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +0 -219
  160. data/sorbet/rbi/gems/solargraph@0.46.0.rbi +0 -9075
  161. data/sorbet/rbi/gems/spoom@1.1.12.rbi +0 -2369
  162. data/sorbet/rbi/gems/syntax_tree-haml@1.3.1.rbi +0 -8
  163. data/sorbet/rbi/gems/syntax_tree-rbs@0.5.0.rbi +0 -8
  164. data/sorbet/rbi/gems/syntax_tree@3.5.0.rbi +0 -8
  165. data/sorbet/rbi/gems/tapioca@0.9.4.rbi +0 -2946
  166. data/sorbet/rbi/gems/temple@0.8.2.rbi +0 -1712
  167. data/sorbet/rbi/gems/tilt@2.0.11.rbi +0 -742
  168. data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +0 -5914
  169. data/sorbet/rbi/gems/unicode-display_width@2.2.0.rbi +0 -48
  170. data/sorbet/rbi/gems/unparser@0.6.5.rbi +0 -4529
  171. data/sorbet/rbi/gems/webrick@1.7.0.rbi +0 -2553
  172. data/sorbet/rbi/gems/zeitwerk@2.6.0.rbi +0 -867
  173. data/sorbet/rbi/manual.rbi +0 -7
  174. data/yarn.lock +0 -20
@@ -1,2946 +0,0 @@
1
- # typed: false
2
-
3
- # DO NOT EDIT MANUALLY
4
- # This is an autogenerated file for types exported from the `tapioca` gem.
5
- # Please instead update this file by running `bin/tapioca gem tapioca`.
6
-
7
- class Bundler::Dependency < ::Gem::Dependency
8
- include ::Tapioca::Gemfile::AutoRequireHook
9
- end
10
-
11
- # We need to do the alias-method-chain dance since Bootsnap does the same,
12
- # and prepended modules and alias-method-chain don't play well together.
13
- #
14
- # So, why does Bootsnap do alias-method-chain and not prepend? Glad you asked!
15
- # That's because RubyGems does alias-method-chain for Kernel#require and such,
16
- # so, if Bootsnap were to do prepend, it might end up breaking RubyGems.
17
- #
18
- # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/autoload.rb:65
19
- class Module
20
- # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/mixin.rb:78
21
- def append_features(constant); end
22
-
23
- # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/autoload.rb:68
24
- def autoload(const_name, path); end
25
-
26
- # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/mixin.rb:90
27
- def extend_object(obj); end
28
-
29
- # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/mixin.rb:66
30
- def prepend_features(constant); end
31
- end
32
-
33
- # source://activesupport-7.0.3.1/lib/active_support/core_ext/module/delegation.rb:13
34
- Module::DELEGATION_RESERVED_KEYWORDS = T.let(T.unsafe(nil), Array)
35
-
36
- # source://activesupport-7.0.3.1/lib/active_support/core_ext/module/delegation.rb:14
37
- Module::DELEGATION_RESERVED_METHOD_NAMES = T.let(T.unsafe(nil), Set)
38
-
39
- # source://activesupport-7.0.3.1/lib/active_support/core_ext/module/delegation.rb:10
40
- Module::RUBY_RESERVED_KEYWORDS = T.let(T.unsafe(nil), Array)
41
-
42
- # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:4
43
- module RBI; end
44
-
45
- # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:5
46
- class RBI::Tree < ::RBI::NodeWithComments
47
- # source://rbi-0.0.15/lib/rbi/model.rb:115
48
- sig do
49
- params(
50
- loc: T.nilable(::RBI::Loc),
51
- comments: T::Array[::RBI::Comment],
52
- block: T.nilable(T.proc.params(node: ::RBI::Tree).void)
53
- ).void
54
- end
55
- def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
56
-
57
- # source://rbi-0.0.15/lib/rbi/model.rb:122
58
- sig { params(node: ::RBI::Node).void }
59
- def <<(node); end
60
-
61
- # source://rbi-0.0.15/lib/rbi/printer.rb:224
62
- sig { override.params(v: ::RBI::Printer).void }
63
- def accept_printer(v); end
64
-
65
- # source://rbi-0.0.15/lib/rbi/rewriters/add_sig_templates.rb:66
66
- sig { params(with_todo_comment: T::Boolean).void }
67
- def add_sig_templates!(with_todo_comment: T.unsafe(nil)); end
68
-
69
- # source://rbi-0.0.15/lib/rbi/rewriters/annotate.rb:48
70
- sig { params(annotation: ::String, annotate_scopes: T::Boolean, annotate_properties: T::Boolean).void }
71
- def annotate!(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end
72
-
73
- # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:38
74
- sig do
75
- params(
76
- name: ::String,
77
- superclass_name: T.nilable(::String),
78
- block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)
79
- ).returns(::RBI::Scope)
80
- end
81
- def create_class(name, superclass_name: T.unsafe(nil), &block); end
82
-
83
- # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:45
84
- sig { params(name: ::String, value: ::String).void }
85
- def create_constant(name, value:); end
86
-
87
- # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:55
88
- sig { params(name: ::String).void }
89
- def create_extend(name); end
90
-
91
- # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:50
92
- sig { params(name: ::String).void }
93
- def create_include(name); end
94
-
95
- # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:88
96
- sig do
97
- params(
98
- name: ::String,
99
- parameters: T::Array[::RBI::TypedParam],
100
- return_type: ::String,
101
- class_method: T::Boolean,
102
- visibility: ::RBI::Visibility
103
- ).void
104
- end
105
- def create_method(name, parameters: T.unsafe(nil), return_type: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil)); end
106
-
107
- # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:60
108
- sig { params(name: ::String).void }
109
- def create_mixes_in_class_methods(name); end
110
-
111
- # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:25
112
- sig { params(name: ::String, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) }
113
- def create_module(name, &block); end
114
-
115
- # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:9
116
- sig { params(constant: ::Module, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).void }
117
- def create_path(constant, &block); end
118
-
119
- # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:74
120
- sig do
121
- params(
122
- name: ::String,
123
- type: ::String,
124
- variance: ::Symbol,
125
- fixed: T.nilable(::String),
126
- upper: T.nilable(::String),
127
- lower: T.nilable(::String)
128
- ).void
129
- end
130
- def create_type_variable(name, type:, variance: T.unsafe(nil), fixed: T.unsafe(nil), upper: T.unsafe(nil), lower: T.unsafe(nil)); end
131
-
132
- # source://rbi-0.0.15/lib/rbi/rewriters/deannotate.rb:40
133
- sig { params(annotation: ::String).void }
134
- def deannotate!(annotation); end
135
-
136
- # source://rbi-0.0.15/lib/rbi/model.rb:128
137
- sig { returns(T::Boolean) }
138
- def empty?; end
139
-
140
- # source://rbi-0.0.15/lib/rbi/rewriters/group_nodes.rb:38
141
- sig { void }
142
- def group_nodes!; end
143
-
144
- # source://rbi-0.0.15/lib/rbi/index.rb:64
145
- sig { returns(::RBI::Index) }
146
- def index; end
147
-
148
- # source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:318
149
- sig do
150
- params(
151
- other: ::RBI::Tree,
152
- left_name: ::String,
153
- right_name: ::String,
154
- keep: ::RBI::Rewriters::Merge::Keep
155
- ).returns(::RBI::MergeTree)
156
- end
157
- def merge(other, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end
158
-
159
- # source://rbi-0.0.15/lib/rbi/rewriters/nest_non_public_methods.rb:45
160
- sig { void }
161
- def nest_non_public_methods!; end
162
-
163
- # source://rbi-0.0.15/lib/rbi/rewriters/nest_singleton_methods.rb:35
164
- sig { void }
165
- def nest_singleton_methods!; end
166
-
167
- # source://rbi-0.0.15/lib/rbi/model.rb:106
168
- sig { returns(T::Array[::RBI::Node]) }
169
- def nodes; end
170
-
171
- # source://rbi-0.0.15/lib/rbi/printer.rb:231
172
- sig { override.returns(T::Boolean) }
173
- def oneline?; end
174
-
175
- # source://rbi-0.0.15/lib/rbi/rewriters/sort_nodes.rb:105
176
- sig { void }
177
- def sort_nodes!; end
178
-
179
- private
180
-
181
- # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:108
182
- sig { params(node: ::RBI::Node).returns(::RBI::Node) }
183
- def create_node(node); end
184
-
185
- # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:103
186
- sig { returns(T::Hash[::String, ::RBI::Node]) }
187
- def nodes_cache; end
188
- end
189
-
190
- # source://tapioca-0.9.4/lib/tapioca/rbi_ext/model.rb:118
191
- class RBI::TypedParam < ::T::Struct
192
- const :param, ::RBI::Param
193
- const :type, ::String
194
-
195
- class << self
196
- # source://sorbet-runtime-0.5.10346/lib/types/struct.rb:13
197
- def inherited(s); end
198
- end
199
- end
200
-
201
- # source://rbi-0.0.15/lib/rbi/version.rb:5
202
- RBI::VERSION = T.let(T.unsafe(nil), String)
203
-
204
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:5
205
- module T::Generic
206
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:13
207
- def [](*types); end
208
-
209
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:21
210
- def type_member(variance = T.unsafe(nil), fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil), &bounds_proc); end
211
-
212
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:37
213
- def type_template(variance = T.unsafe(nil), fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil), &bounds_proc); end
214
- end
215
-
216
- # This module intercepts calls to generic type instantiations and type variable definitions.
217
- # Tapioca stores the data from those calls in a `GenericTypeRegistry` which can then be used
218
- # to look up the original call details when we are trying to do code generation.
219
- #
220
- # We are interested in the data of the `[]`, `type_member` and `type_template` calls which
221
- # are all needed to generate good generic information at runtime.
222
- #
223
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:12
224
- module T::Generic::TypeStoragePatch
225
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:13
226
- def [](*types); end
227
-
228
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:21
229
- def type_member(variance = T.unsafe(nil), fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil), &bounds_proc); end
230
-
231
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:37
232
- def type_template(variance = T.unsafe(nil), fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil), &bounds_proc); end
233
- end
234
-
235
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/proc_bind_patch.rb:28
236
- module T::Private::Methods
237
- class << self
238
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/proc_bind_patch.rb:30
239
- def finalize_proc(decl); end
240
- end
241
- end
242
-
243
- # source://sorbet-runtime-0.5.10346/lib/types/private/methods/_methods.rb:29
244
- T::Private::Methods::ARG_NOT_PROVIDED = T.let(T.unsafe(nil), Object)
245
-
246
- class T::Private::Methods::Declaration < ::Struct
247
- def bind; end
248
- def bind=(_); end
249
- def checked; end
250
- def checked=(_); end
251
- def finalized; end
252
- def finalized=(_); end
253
- def mod; end
254
- def mod=(_); end
255
- def mode; end
256
- def mode=(_); end
257
- def on_failure; end
258
- def on_failure=(_); end
259
- def override_allow_incompatible; end
260
- def override_allow_incompatible=(_); end
261
- def params; end
262
- def params=(_); end
263
- def raw; end
264
- def raw=(_); end
265
- def returns; end
266
- def returns=(_); end
267
- def type_parameters; end
268
- def type_parameters=(_); end
269
-
270
- class << self
271
- def [](*_arg0); end
272
- def inspect; end
273
- def keyword_init?; end
274
- def members; end
275
- def new(*_arg0); end
276
- end
277
- end
278
-
279
- class T::Private::Methods::DeclarationBlock < ::Struct
280
- def blk; end
281
- def blk=(_); end
282
- def final; end
283
- def final=(_); end
284
- def loc; end
285
- def loc=(_); end
286
- def mod; end
287
- def mod=(_); end
288
- def raw; end
289
- def raw=(_); end
290
-
291
- class << self
292
- def [](*_arg0); end
293
- def inspect; end
294
- def keyword_init?; end
295
- def members; end
296
- def new(*_arg0); end
297
- end
298
- end
299
-
300
- # source://sorbet-runtime-0.5.10346/lib/types/private/methods/_methods.rb:30
301
- T::Private::Methods::PROC_TYPE = T.let(T.unsafe(nil), Object)
302
-
303
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/proc_bind_patch.rb:29
304
- module T::Private::Methods::ProcBindPatch
305
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/proc_bind_patch.rb:30
306
- def finalize_proc(decl); end
307
- end
308
-
309
- # source://sorbet-runtime-0.5.10346/lib/types/private/methods/_methods.rb:581
310
- T::Private::Methods::TOP_SELF = T.let(T.unsafe(nil), Object)
311
-
312
- class T::Types::Proc < ::T::Types::Base; end
313
-
314
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/proc_bind_patch.rb:6
315
- module T::Types::ProcBindPatch
316
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/proc_bind_patch.rb:7
317
- def initialize(arg_types, returns, bind = T.unsafe(nil)); end
318
-
319
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/proc_bind_patch.rb:15
320
- def name; end
321
- end
322
-
323
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/name_patch.rb:6
324
- class T::Types::Simple < ::T::Types::Base
325
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:64
326
- def name; end
327
- end
328
-
329
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:59
330
- module T::Types::Simple::GenericPatch
331
- # This method intercepts calls to the `name` method for simple types, so that
332
- # it can ask the name to the type if the type is generic, since, by this point,
333
- # we've created a clone of that type with the `name` method returning the
334
- # appropriate name for that specific concrete type.
335
- #
336
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:64
337
- def name; end
338
- end
339
-
340
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/name_patch.rb:7
341
- module T::Types::Simple::NamePatch
342
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/name_patch.rb:10
343
- def name; end
344
-
345
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/name_patch.rb:16
346
- def qualified_name_of(constant); end
347
- end
348
-
349
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/name_patch.rb:8
350
- T::Types::Simple::NamePatch::NAME_METHOD = T.let(T.unsafe(nil), UnboundMethod)
351
-
352
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:80
353
- module T::Utils
354
- class << self
355
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:82
356
- def coerce(val); end
357
- end
358
- end
359
-
360
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:81
361
- module T::Utils::CoercePatch
362
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:82
363
- def coerce(val); end
364
- end
365
-
366
- # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/autoload.rb:4
367
- module Tapioca
368
- class << self
369
- # source://tapioca-0.9.4/lib/tapioca.rb:17
370
- sig { void }
371
- def disable_traces; end
372
-
373
- # source://tapioca-0.9.4/lib/tapioca.rb:12
374
- sig { params(trace_name: ::Symbol, block: T.proc.params(arg0: ::TracePoint).void).void }
375
- def register_trace(trace_name, &block); end
376
-
377
- # source://tapioca-0.9.4/lib/tapioca.rb:26
378
- sig do
379
- type_parameters(:Result)
380
- .params(
381
- blk: T.proc.returns(T.type_parameter(:Result))
382
- ).returns(T.type_parameter(:Result))
383
- end
384
- def silence_warnings(&blk); end
385
- end
386
- end
387
-
388
- # source://tapioca-0.9.4/lib/tapioca.rb:43
389
- Tapioca::BINARY_FILE = T.let(T.unsafe(nil), String)
390
-
391
- # source://tapioca-0.9.4/lib/tapioca.rb:63
392
- Tapioca::CENTRAL_REPO_ANNOTATIONS_DIR = T.let(T.unsafe(nil), String)
393
-
394
- # source://tapioca-0.9.4/lib/tapioca.rb:62
395
- Tapioca::CENTRAL_REPO_INDEX_PATH = T.let(T.unsafe(nil), String)
396
-
397
- # source://tapioca-0.9.4/lib/tapioca.rb:61
398
- Tapioca::CENTRAL_REPO_ROOT_URI = T.let(T.unsafe(nil), String)
399
-
400
- # source://tapioca-0.9.4/lib/tapioca/cli.rb:5
401
- class Tapioca::Cli < ::Thor
402
- include ::Tapioca::CliHelper
403
- include ::Tapioca::ConfigHelper
404
- include ::Tapioca::EnvHelper
405
-
406
- # source://tapioca-0.9.4/lib/tapioca/cli.rb:323
407
- def __print_version; end
408
-
409
- # source://tapioca-0.9.4/lib/tapioca/cli.rb:306
410
- def annotations; end
411
-
412
- # source://tapioca-0.9.4/lib/tapioca/cli.rb:279
413
- def check_shims; end
414
-
415
- # source://tapioca-0.9.4/lib/tapioca/cli.rb:36
416
- def configure; end
417
-
418
- # source://tapioca-0.9.4/lib/tapioca/cli.rb:119
419
- def dsl(*constants); end
420
-
421
- # source://tapioca-0.9.4/lib/tapioca/cli.rb:224
422
- def gem(*gems); end
423
-
424
- # source://tapioca-0.9.4/lib/tapioca/cli.rb:25
425
- def init; end
426
-
427
- # source://tapioca-0.9.4/lib/tapioca/cli.rb:47
428
- def require; end
429
-
430
- # source://tapioca-0.9.4/lib/tapioca/cli.rb:66
431
- def todo; end
432
-
433
- private
434
-
435
- # source://tapioca-0.9.4/lib/tapioca/cli.rb:335
436
- def print_init_next_steps; end
437
-
438
- class << self
439
- # source://tapioca-0.9.4/lib/tapioca/cli.rb:328
440
- def exit_on_failure?; end
441
- end
442
- end
443
-
444
- # source://tapioca-0.9.4/lib/tapioca/cli.rb:10
445
- Tapioca::Cli::FILE_HEADER_OPTION_DESC = T.let(T.unsafe(nil), String)
446
-
447
- # source://tapioca-0.9.4/lib/tapioca/helpers/cli_helper.rb:5
448
- module Tapioca::CliHelper
449
- requires_ancestor { Thor::Shell }
450
-
451
- # source://tapioca-0.9.4/lib/tapioca/helpers/cli_helper.rb:33
452
- sig { params(options: T::Hash[::Symbol, T.untyped]).returns(T.nilable(::String)) }
453
- def netrc_file(options); end
454
-
455
- # source://tapioca-0.9.4/lib/tapioca/helpers/cli_helper.rb:26
456
- sig { params(options: T::Hash[::Symbol, T.untyped]).returns(::Tapioca::RBIFormatter) }
457
- def rbi_formatter(options); end
458
-
459
- # source://tapioca-0.9.4/lib/tapioca/helpers/cli_helper.rb:12
460
- sig { params(message: ::String, color: T.any(::Symbol, T::Array[::Symbol])).void }
461
- def say_error(message = T.unsafe(nil), *color); end
462
- end
463
-
464
- # source://tapioca-0.9.4/lib/tapioca/commands.rb:5
465
- module Tapioca::Commands; end
466
-
467
- # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:6
468
- class Tapioca::Commands::Annotations < ::Tapioca::Commands::Command
469
- # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:18
470
- sig do
471
- params(
472
- central_repo_root_uris: T::Array[::String],
473
- auth: T.nilable(::String),
474
- netrc_file: T.nilable(::String),
475
- central_repo_index_path: ::String,
476
- typed_overrides: T::Hash[::String, ::String]
477
- ).void
478
- end
479
- def initialize(central_repo_root_uris:, auth: T.unsafe(nil), netrc_file: T.unsafe(nil), central_repo_index_path: T.unsafe(nil), typed_overrides: T.unsafe(nil)); end
480
-
481
- # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:36
482
- sig { override.void }
483
- def execute; end
484
-
485
- private
486
-
487
- # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:191
488
- sig { params(name: ::String, content: ::String).returns(::String) }
489
- def add_header(name, content); end
490
-
491
- # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:209
492
- sig { params(name: ::String, content: ::String).returns(::String) }
493
- def apply_typed_override(name, content); end
494
-
495
- # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:132
496
- sig { params(repo_uris: T::Array[::String], gem_name: ::String).void }
497
- def fetch_annotation(repo_uris, gem_name); end
498
-
499
- # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:109
500
- sig { params(gem_names: T::Array[::String]).returns(T::Array[::String]) }
501
- def fetch_annotations(gem_names); end
502
-
503
- # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:150
504
- sig { params(repo_uri: ::String, path: ::String).returns(T.nilable(::String)) }
505
- def fetch_file(repo_uri, path); end
506
-
507
- # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:167
508
- sig { params(repo_uri: ::String, path: ::String).returns(T.nilable(::String)) }
509
- def fetch_http_file(repo_uri, path); end
510
-
511
- # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:98
512
- sig { params(repo_uri: ::String, repo_number: T.nilable(::Integer)).returns(T.nilable(Tapioca::RepoIndex)) }
513
- def fetch_index(repo_uri, repo_number:); end
514
-
515
- # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:77
516
- sig { returns(T::Hash[::String, Tapioca::RepoIndex]) }
517
- def fetch_indexes; end
518
-
519
- # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:159
520
- sig { params(repo_uri: ::String, path: ::String).returns(T.nilable(::String)) }
521
- def fetch_local_file(repo_uri, path); end
522
-
523
- # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:46
524
- sig { returns(T::Array[::String]) }
525
- def list_gemfile_gems; end
526
-
527
- # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:221
528
- sig { params(gem_name: ::String, contents: T::Array[::String]).returns(T.nilable(::String)) }
529
- def merge_files(gem_name, contents); end
530
-
531
- # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:56
532
- sig { params(project_gems: T::Array[::String]).void }
533
- def remove_expired_annotations(project_gems); end
534
-
535
- # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:248
536
- sig { returns(T::Hash[::String, T.nilable(::String)]) }
537
- def repo_tokens; end
538
-
539
- # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:276
540
- sig { params(path: ::String, repo_uri: ::String, message: ::String).void }
541
- def say_http_error(path, repo_uri, message:); end
542
-
543
- # source://tapioca-0.9.4/lib/tapioca/commands/annotations.rb:260
544
- sig { params(repo_uri: ::String).returns(T.nilable(::String)) }
545
- def token_for(repo_uri); end
546
- end
547
-
548
- # source://tapioca-0.9.4/lib/tapioca/commands/check_shims.rb:6
549
- class Tapioca::Commands::CheckShims < ::Tapioca::Commands::Command
550
- include ::Tapioca::SorbetHelper
551
- include ::Tapioca::RBIFilesHelper
552
-
553
- # source://tapioca-0.9.4/lib/tapioca/commands/check_shims.rb:22
554
- sig do
555
- params(
556
- gem_rbi_dir: ::String,
557
- dsl_rbi_dir: ::String,
558
- annotations_rbi_dir: ::String,
559
- shim_rbi_dir: ::String,
560
- todo_rbi_file: ::String,
561
- payload: T::Boolean,
562
- number_of_workers: T.nilable(::Integer)
563
- ).void
564
- end
565
- def initialize(gem_rbi_dir:, dsl_rbi_dir:, annotations_rbi_dir:, shim_rbi_dir:, todo_rbi_file:, payload:, number_of_workers:); end
566
-
567
- # source://tapioca-0.9.4/lib/tapioca/commands/check_shims.rb:42
568
- sig { override.void }
569
- def execute; end
570
- end
571
-
572
- # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
573
- #
574
- # source://tapioca-0.9.4/lib/tapioca/commands/command.rb:6
575
- class Tapioca::Commands::Command
576
- include ::Thor::Base
577
- include ::Thor::Invocation
578
- include ::Thor::Shell
579
- include ::Tapioca::CliHelper
580
- extend ::Thor::Base::ClassMethods
581
- extend ::Thor::Invocation::ClassMethods
582
-
583
- abstract!
584
-
585
- # source://tapioca-0.9.4/lib/tapioca/commands/command.rb:20
586
- sig { void }
587
- def initialize; end
588
-
589
- # @abstract
590
- #
591
- # source://tapioca-0.9.4/lib/tapioca/commands/command.rb:25
592
- sig { abstract.void }
593
- def execute; end
594
-
595
- # source://thor-1.2.1/lib/thor/base.rb:139
596
- sig { returns(::Thor::Actions) }
597
- def file_writer; end
598
-
599
- private
600
-
601
- # source://tapioca-0.9.4/lib/tapioca/commands/command.rb:46
602
- sig do
603
- params(
604
- path: T.any(::Pathname, ::String),
605
- content: ::String,
606
- force: T::Boolean,
607
- skip: T::Boolean,
608
- verbose: T::Boolean
609
- ).void
610
- end
611
- def create_file(path, content, force: T.unsafe(nil), skip: T.unsafe(nil), verbose: T.unsafe(nil)); end
612
-
613
- # source://tapioca-0.9.4/lib/tapioca/commands/command.rb:30
614
- sig { params(command: ::Symbol, args: ::String).returns(::String) }
615
- def default_command(command, *args); end
616
-
617
- # source://tapioca-0.9.4/lib/tapioca/commands/command.rb:56
618
- sig { params(path: T.any(::Pathname, ::String), verbose: T::Boolean).void }
619
- def remove_file(path, verbose: T.unsafe(nil)); end
620
- end
621
-
622
- # source://tapioca-0.9.4/lib/tapioca/commands/command.rb:10
623
- class Tapioca::Commands::Command::FileWriter < ::Thor
624
- include ::Thor::Actions
625
- extend ::Thor::Actions::ClassMethods
626
- end
627
-
628
- # source://tapioca-0.9.4/lib/tapioca/commands/configure.rb:6
629
- class Tapioca::Commands::Configure < ::Tapioca::Commands::Command
630
- # source://tapioca-0.9.4/lib/tapioca/commands/configure.rb:14
631
- sig { params(sorbet_config: ::String, tapioca_config: ::String, default_postrequire: ::String).void }
632
- def initialize(sorbet_config:, tapioca_config:, default_postrequire:); end
633
-
634
- # source://tapioca-0.9.4/lib/tapioca/commands/configure.rb:30
635
- sig { override.void }
636
- def execute; end
637
-
638
- private
639
-
640
- # source://tapioca-0.9.4/lib/tapioca/commands/configure.rb:78
641
- sig { void }
642
- def create_binstub; end
643
-
644
- # source://tapioca-0.9.4/lib/tapioca/commands/configure.rb:68
645
- sig { void }
646
- def create_post_require; end
647
-
648
- # source://tapioca-0.9.4/lib/tapioca/commands/configure.rb:40
649
- sig { void }
650
- def create_sorbet_config; end
651
-
652
- # source://tapioca-0.9.4/lib/tapioca/commands/configure.rb:49
653
- sig { void }
654
- def create_tapioca_config; end
655
-
656
- # source://tapioca-0.9.4/lib/tapioca/commands/configure.rb:91
657
- sig { returns(::Bundler::Installer) }
658
- def installer; end
659
-
660
- # source://tapioca-0.9.4/lib/tapioca/commands/configure.rb:96
661
- sig { returns(::Bundler::StubSpecification) }
662
- def spec; end
663
- end
664
-
665
- # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:6
666
- class Tapioca::Commands::Dsl < ::Tapioca::Commands::Command
667
- include ::Tapioca::SorbetHelper
668
- include ::Tapioca::RBIFilesHelper
669
-
670
- # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:28
671
- sig do
672
- params(
673
- requested_constants: T::Array[::String],
674
- outpath: ::Pathname,
675
- only: T::Array[::String],
676
- exclude: T::Array[::String],
677
- file_header: T::Boolean,
678
- compiler_path: ::String,
679
- tapioca_path: ::String,
680
- should_verify: T::Boolean,
681
- quiet: T::Boolean,
682
- verbose: T::Boolean,
683
- number_of_workers: T.nilable(::Integer),
684
- auto_strictness: T::Boolean,
685
- gem_dir: ::String,
686
- rbi_formatter: ::Tapioca::RBIFormatter
687
- ).void
688
- end
689
- def initialize(requested_constants:, outpath:, only:, exclude:, file_header:, compiler_path:, tapioca_path:, should_verify: T.unsafe(nil), quiet: T.unsafe(nil), verbose: T.unsafe(nil), number_of_workers: T.unsafe(nil), auto_strictness: T.unsafe(nil), gem_dir: T.unsafe(nil), rbi_formatter: T.unsafe(nil)); end
690
-
691
- # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:65
692
- sig { override.void }
693
- def execute; end
694
-
695
- private
696
-
697
- # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:147
698
- sig { void }
699
- def abort_if_pending_migrations!; end
700
-
701
- # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:324
702
- sig { params(cause: ::Symbol, files: T::Array[::String]).returns(::String) }
703
- def build_error_for_files(cause, files); end
704
-
705
- # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:248
706
- sig do
707
- params(
708
- constant_name: ::String,
709
- rbi: ::RBI::File,
710
- outpath: ::Pathname,
711
- quiet: T::Boolean
712
- ).returns(T.nilable(::Pathname))
713
- end
714
- def compile_dsl_rbi(constant_name, rbi, outpath: T.unsafe(nil), quiet: T.unsafe(nil)); end
715
-
716
- # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:186
717
- sig { params(constant_names: T::Array[::String]).returns(T::Array[::Module]) }
718
- def constantize(constant_names); end
719
-
720
- # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:209
721
- sig { params(compiler_names: T::Array[::String]).returns(T::Array[T.class_of(Tapioca::Dsl::Compiler)]) }
722
- def constantize_compilers(compiler_names); end
723
-
724
- # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:287
725
- sig { params(constant_name: ::String).returns(::Pathname) }
726
- def dsl_rbi_filename(constant_name); end
727
-
728
- # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:173
729
- sig { params(requested_constants: T::Array[::String], path: ::Pathname).returns(T::Set[::Pathname]) }
730
- def existing_rbi_filenames(requested_constants, path: T.unsafe(nil)); end
731
-
732
- # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:382
733
- sig { params(constant: ::String).returns(::String) }
734
- def generate_command_for(constant); end
735
-
736
- # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:135
737
- sig { params(eager_load: T::Boolean).void }
738
- def load_application(eager_load:); end
739
-
740
- # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:158
741
- sig { void }
742
- def load_dsl_compilers; end
743
-
744
- # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:387
745
- sig { void }
746
- def load_dsl_extensions; end
747
-
748
- # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:360
749
- sig { returns(::Tapioca::Runtime::Loader) }
750
- def loader; end
751
-
752
- # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:266
753
- sig { params(dir: ::Pathname).void }
754
- def perform_dsl_verification(dir); end
755
-
756
- # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:275
757
- sig { params(files: T::Set[::Pathname]).void }
758
- def purge_stale_dsl_rbi_files(files); end
759
-
760
- # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:377
761
- sig { params(constant: ::String).returns(::String) }
762
- def rbi_filename_for(constant); end
763
-
764
- # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:353
765
- sig { params(path: ::Pathname).returns(T::Array[::Pathname]) }
766
- def rbi_files_in(path); end
767
-
768
- # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:333
769
- sig { params(diff: T::Hash[::String, ::Symbol], command: ::Symbol).void }
770
- def report_diff_and_exit_if_out_of_date(diff, command); end
771
-
772
- # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:228
773
- sig { params(name: ::String).returns(T.nilable(T.class_of(Tapioca::Dsl::Compiler))) }
774
- def resolve(name); end
775
-
776
- # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:365
777
- sig { params(class_name: ::String).returns(::String) }
778
- def underscore(class_name); end
779
-
780
- # source://tapioca-0.9.4/lib/tapioca/commands/dsl.rb:292
781
- sig { params(tmp_dir: ::Pathname).returns(T::Hash[::String, ::Symbol]) }
782
- def verify_dsl_rbi(tmp_dir:); end
783
- end
784
-
785
- # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:6
786
- class Tapioca::Commands::Gem < ::Tapioca::Commands::Command
787
- include ::Tapioca::SorbetHelper
788
- include ::Tapioca::RBIFilesHelper
789
-
790
- # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:28
791
- sig do
792
- params(
793
- gem_names: T::Array[::String],
794
- exclude: T::Array[::String],
795
- prerequire: T.nilable(::String),
796
- postrequire: ::String,
797
- typed_overrides: T::Hash[::String, ::String],
798
- outpath: ::Pathname,
799
- file_header: T::Boolean,
800
- include_doc: T::Boolean,
801
- include_loc: T::Boolean,
802
- include_exported_rbis: T::Boolean,
803
- number_of_workers: T.nilable(::Integer),
804
- auto_strictness: T::Boolean,
805
- dsl_dir: ::String,
806
- rbi_formatter: ::Tapioca::RBIFormatter
807
- ).void
808
- end
809
- def initialize(gem_names:, exclude:, prerequire:, postrequire:, typed_overrides:, outpath:, file_header:, include_doc:, include_loc:, include_exported_rbis:, number_of_workers: T.unsafe(nil), auto_strictness: T.unsafe(nil), dsl_dir: T.unsafe(nil), rbi_formatter: T.unsafe(nil)); end
810
-
811
- # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:68
812
- sig { override.void }
813
- def execute; end
814
-
815
- # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:101
816
- sig { params(should_verify: T::Boolean, exclude: T::Array[::String]).void }
817
- def sync(should_verify: T.unsafe(nil), exclude: T.unsafe(nil)); end
818
-
819
- private
820
-
821
- # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:313
822
- sig { returns(T::Array[::String]) }
823
- def added_rbis; end
824
-
825
- # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:374
826
- sig { params(cause: ::Symbol, files: T::Array[::String]).returns(::String) }
827
- def build_error_for_files(cause, files); end
828
-
829
- # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:140
830
- sig { returns(::Tapioca::Gemfile) }
831
- def bundle; end
832
-
833
- # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:180
834
- sig { params(gem: ::Tapioca::Gemfile::GemSpec).void }
835
- def compile_gem_rbi(gem); end
836
-
837
- # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:308
838
- sig { params(gem_name: ::String).returns(::Pathname) }
839
- def existing_rbi(gem_name); end
840
-
841
- # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:356
842
- sig { returns(T::Hash[::String, ::String]) }
843
- def existing_rbis; end
844
-
845
- # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:320
846
- sig { params(gem_name: ::String).returns(::Pathname) }
847
- def expected_rbi(gem_name); end
848
-
849
- # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:362
850
- sig { returns(T::Hash[::String, ::String]) }
851
- def expected_rbis; end
852
-
853
- # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:292
854
- sig { params(file: ::String, error: ::LoadError).void }
855
- def explain_failed_require(file, error); end
856
-
857
- # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:325
858
- sig { params(gem_name: ::String).returns(T::Boolean) }
859
- def gem_rbi_exists?(gem_name); end
860
-
861
- # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:369
862
- sig { params(gem_name: ::String, version: ::String).returns(::Pathname) }
863
- def gem_rbi_filename(gem_name, version); end
864
-
865
- # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:165
866
- sig { params(gem_names: T::Array[::String]).returns(T::Array[::Tapioca::Gemfile::GemSpec]) }
867
- def gems_to_generate(gem_names); end
868
-
869
- # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:135
870
- sig { returns(::Tapioca::Runtime::Loader) }
871
- def loader; end
872
-
873
- # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:379
874
- sig { params(gem: ::Tapioca::Gemfile::GemSpec, file: ::RBI::File).void }
875
- def merge_with_exported_rbi(gem, file); end
876
-
877
- # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:350
878
- sig { params(old_filename: ::Pathname, new_filename: ::Pathname).void }
879
- def move(old_filename, new_filename); end
880
-
881
- # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:255
882
- sig { void }
883
- def perform_additions; end
884
-
885
- # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:228
886
- sig { void }
887
- def perform_removals; end
888
-
889
- # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:209
890
- sig { params(exclude: T::Array[::String]).void }
891
- def perform_sync_verification(exclude: T.unsafe(nil)); end
892
-
893
- # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:303
894
- sig { returns(T::Array[::String]) }
895
- def removed_rbis; end
896
-
897
- # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:330
898
- sig { params(diff: T::Hash[::String, ::Symbol], command: ::Symbol).void }
899
- def report_diff_and_exit_if_out_of_date(diff, command); end
900
-
901
- # source://tapioca-0.9.4/lib/tapioca/commands/gem.rb:145
902
- sig { void }
903
- def require_gem_file; end
904
- end
905
-
906
- # source://tapioca-0.9.4/lib/tapioca/commands/require.rb:6
907
- class Tapioca::Commands::Require < ::Tapioca::Commands::Command
908
- # source://tapioca-0.9.4/lib/tapioca/commands/require.rb:13
909
- sig { params(requires_path: ::String, sorbet_config_path: ::String).void }
910
- def initialize(requires_path:, sorbet_config_path:); end
911
-
912
- # source://tapioca-0.9.4/lib/tapioca/commands/require.rb:21
913
- sig { override.void }
914
- def execute; end
915
- end
916
-
917
- # source://tapioca-0.9.4/lib/tapioca/commands/todo.rb:6
918
- class Tapioca::Commands::Todo < ::Tapioca::Commands::Command
919
- include ::Tapioca::SorbetHelper
920
-
921
- # source://tapioca-0.9.4/lib/tapioca/commands/todo.rb:15
922
- sig { params(todo_file: ::String, file_header: T::Boolean).void }
923
- def initialize(todo_file:, file_header:); end
924
-
925
- # source://tapioca-0.9.4/lib/tapioca/commands/todo.rb:23
926
- sig { override.void }
927
- def execute; end
928
-
929
- private
930
-
931
- # source://tapioca-0.9.4/lib/tapioca/commands/todo.rb:49
932
- sig { params(constants: T::Array[::String], command: ::String).returns(::RBI::File) }
933
- def rbi(constants, command:); end
934
-
935
- # source://tapioca-0.9.4/lib/tapioca/commands/todo.rb:69
936
- sig { returns(T::Array[::String]) }
937
- def unresolved_constants; end
938
- end
939
-
940
- # source://tapioca-0.9.4/lib/tapioca/helpers/config_helper.rb:5
941
- module Tapioca::ConfigHelper
942
- requires_ancestor { Thor }
943
-
944
- # source://tapioca-0.9.4/lib/tapioca/helpers/config_helper.rb:18
945
- sig { params(args: T.untyped, local_options: T.untyped, config: T.untyped).void }
946
- def initialize(args = T.unsafe(nil), local_options = T.unsafe(nil), config = T.unsafe(nil)); end
947
-
948
- # source://tapioca-0.9.4/lib/tapioca/helpers/config_helper.rb:12
949
- sig { returns(::String) }
950
- def command_name; end
951
-
952
- # source://tapioca-0.9.4/lib/tapioca/helpers/config_helper.rb:15
953
- sig { returns(::Thor::CoreExt::HashWithIndifferentAccess) }
954
- def defaults; end
955
-
956
- # source://tapioca-0.9.4/lib/tapioca/helpers/config_helper.rb:34
957
- sig { returns(::Thor::CoreExt::HashWithIndifferentAccess) }
958
- def options; end
959
-
960
- private
961
-
962
- # source://tapioca-0.9.4/lib/tapioca/helpers/config_helper.rb:151
963
- sig { params(msg: ::String).returns(::Tapioca::ConfigHelper::ConfigError) }
964
- def build_error(msg); end
965
-
966
- # source://tapioca-0.9.4/lib/tapioca/helpers/config_helper.rb:176
967
- sig { params(config_file: ::String, errors: T::Array[::Tapioca::ConfigHelper::ConfigError]).returns(::String) }
968
- def build_error_message(config_file, errors); end
969
-
970
- # source://tapioca-0.9.4/lib/tapioca/helpers/config_helper.rb:56
971
- sig do
972
- params(
973
- options: ::Thor::CoreExt::HashWithIndifferentAccess
974
- ).returns(::Thor::CoreExt::HashWithIndifferentAccess)
975
- end
976
- def config_options(options); end
977
-
978
- # source://tapioca-0.9.4/lib/tapioca/helpers/config_helper.rb:46
979
- sig { params(options: T::Hash[::Symbol, ::Thor::Option]).void }
980
- def filter_defaults(options); end
981
-
982
- # source://tapioca-0.9.4/lib/tapioca/helpers/config_helper.rb:194
983
- sig do
984
- params(
985
- options: T.nilable(::Thor::CoreExt::HashWithIndifferentAccess)
986
- ).returns(::Thor::CoreExt::HashWithIndifferentAccess)
987
- end
988
- def merge_options(*options); end
989
-
990
- # source://tapioca-0.9.4/lib/tapioca/helpers/config_helper.rb:70
991
- sig { params(config_file: ::String, config: T::Hash[T.untyped, T.untyped]).void }
992
- def validate_config!(config_file, config); end
993
-
994
- # source://tapioca-0.9.4/lib/tapioca/helpers/config_helper.rb:102
995
- sig do
996
- params(
997
- command_options: T::Hash[::Symbol, ::Thor::Option],
998
- config_key: ::String,
999
- config_options: T::Hash[T.untyped, T.untyped]
1000
- ).returns(T::Array[::Tapioca::ConfigHelper::ConfigError])
1001
- end
1002
- def validate_config_options(command_options, config_key, config_options); end
1003
- end
1004
-
1005
- # source://tapioca-0.9.4/lib/tapioca/helpers/config_helper.rb:146
1006
- class Tapioca::ConfigHelper::ConfigError < ::T::Struct
1007
- const :message_parts, T::Array[::Tapioca::ConfigHelper::ConfigErrorMessagePart]
1008
-
1009
- class << self
1010
- # source://sorbet-runtime-0.5.10346/lib/types/struct.rb:13
1011
- def inherited(s); end
1012
- end
1013
- end
1014
-
1015
- # source://tapioca-0.9.4/lib/tapioca/helpers/config_helper.rb:141
1016
- class Tapioca::ConfigHelper::ConfigErrorMessagePart < ::T::Struct
1017
- const :colors, T::Array[::Symbol]
1018
- const :message, ::String
1019
-
1020
- class << self
1021
- # source://sorbet-runtime-0.5.10346/lib/types/struct.rb:13
1022
- def inherited(s); end
1023
- end
1024
- end
1025
-
1026
- # source://tapioca-0.9.4/lib/tapioca.rb:50
1027
- Tapioca::DEFAULT_ANNOTATIONS_DIR = T.let(T.unsafe(nil), String)
1028
-
1029
- # source://tapioca-0.9.4/lib/tapioca.rb:46
1030
- Tapioca::DEFAULT_DSL_DIR = T.let(T.unsafe(nil), String)
1031
-
1032
- # source://tapioca-0.9.4/lib/tapioca.rb:59
1033
- Tapioca::DEFAULT_ENVIRONMENT = T.let(T.unsafe(nil), String)
1034
-
1035
- # source://tapioca-0.9.4/lib/tapioca.rb:47
1036
- Tapioca::DEFAULT_GEM_DIR = T.let(T.unsafe(nil), String)
1037
-
1038
- # source://tapioca-0.9.4/lib/tapioca.rb:52
1039
- Tapioca::DEFAULT_OVERRIDES = T.let(T.unsafe(nil), Hash)
1040
-
1041
- # source://tapioca-0.9.4/lib/tapioca.rb:44
1042
- Tapioca::DEFAULT_POSTREQUIRE_FILE = T.let(T.unsafe(nil), String)
1043
-
1044
- # source://tapioca-0.9.4/lib/tapioca.rb:45
1045
- Tapioca::DEFAULT_RBI_DIR = T.let(T.unsafe(nil), String)
1046
-
1047
- # source://tapioca-0.9.4/lib/tapioca/rbi_formatter.rb:29
1048
- Tapioca::DEFAULT_RBI_FORMATTER = T.let(T.unsafe(nil), Tapioca::RBIFormatter)
1049
-
1050
- # source://tapioca-0.9.4/lib/tapioca.rb:58
1051
- Tapioca::DEFAULT_RBI_MAX_LINE_LENGTH = T.let(T.unsafe(nil), Integer)
1052
-
1053
- # source://tapioca-0.9.4/lib/tapioca.rb:48
1054
- Tapioca::DEFAULT_SHIM_DIR = T.let(T.unsafe(nil), String)
1055
-
1056
- # source://tapioca-0.9.4/lib/tapioca.rb:49
1057
- Tapioca::DEFAULT_TODO_FILE = T.let(T.unsafe(nil), String)
1058
-
1059
- # source://tapioca-0.9.4/lib/tapioca/dsl/compilers.rb:5
1060
- module Tapioca::Dsl; end
1061
-
1062
- # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
1063
- #
1064
- # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:6
1065
- class Tapioca::Dsl::Compiler
1066
- extend T::Generic
1067
- include ::Tapioca::SorbetHelper
1068
- include ::Tapioca::RBIHelper
1069
- include ::Tapioca::Runtime::Reflection
1070
- extend ::Tapioca::Runtime::Reflection
1071
-
1072
- abstract!
1073
-
1074
- ConstantType = type_member { { upper: Module } }
1075
-
1076
- # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:26
1077
- sig { params(pipeline: ::Tapioca::Dsl::Pipeline, root: ::RBI::Tree, constant: ConstantType).void }
1078
- def initialize(pipeline, root, constant); end
1079
-
1080
- # NOTE: This should eventually accept an `Error` object or `Exception` rather than simply a `String`.
1081
- #
1082
- # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:59
1083
- sig { params(error: ::String).void }
1084
- def add_error(error); end
1085
-
1086
- # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:39
1087
- sig { params(compiler_name: ::String).returns(T::Boolean) }
1088
- def compiler_enabled?(compiler_name); end
1089
-
1090
- # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:20
1091
- sig { returns(ConstantType) }
1092
- def constant; end
1093
-
1094
- # @abstract
1095
- #
1096
- # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:44
1097
- sig { abstract.void }
1098
- def decorate; end
1099
-
1100
- # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:23
1101
- sig { returns(::RBI::Tree) }
1102
- def root; end
1103
-
1104
- private
1105
-
1106
- # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:163
1107
- sig { params(type: ::String).returns(::String) }
1108
- def as_nilable_type(type); end
1109
-
1110
- # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:117
1111
- sig { params(method_def: T.any(::Method, ::UnboundMethod)).returns(T::Array[::RBI::TypedParam]) }
1112
- def compile_method_parameters_to_rbi(method_def); end
1113
-
1114
- # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:153
1115
- sig { params(method_def: T.any(::Method, ::UnboundMethod)).returns(::String) }
1116
- def compile_method_return_type_to_rbi(method_def); end
1117
-
1118
- # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:107
1119
- sig { params(scope: ::RBI::Scope, method_def: T.any(::Method, ::UnboundMethod), class_method: T::Boolean).void }
1120
- def create_method_from_def(scope, method_def, class_method: T.unsafe(nil)); end
1121
-
1122
- # Get the types of each parameter from a method signature
1123
- #
1124
- # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:84
1125
- sig { params(method_def: T.any(::Method, ::UnboundMethod), signature: T.untyped).returns(T::Array[::String]) }
1126
- def parameters_types_from_signature(method_def, signature); end
1127
-
1128
- class << self
1129
- # @abstract
1130
- #
1131
- # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:47
1132
- sig { abstract.returns(T::Enumerable[::Module]) }
1133
- def gather_constants; end
1134
-
1135
- # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:34
1136
- sig { params(constant: ::Module).returns(T::Boolean) }
1137
- def handles?(constant); end
1138
-
1139
- # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:50
1140
- sig { returns(T::Set[::Module]) }
1141
- def processable_constants; end
1142
-
1143
- private
1144
-
1145
- # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:66
1146
- sig { returns(T::Enumerable[::Class]) }
1147
- def all_classes; end
1148
-
1149
- # source://tapioca-0.9.4/lib/tapioca/dsl/compiler.rb:72
1150
- sig { returns(T::Enumerable[::Module]) }
1151
- def all_modules; end
1152
- end
1153
- end
1154
-
1155
- # source://tapioca-0.9.4/lib/tapioca/dsl/compilers.rb:6
1156
- module Tapioca::Dsl::Compilers; end
1157
-
1158
- # source://tapioca-0.9.4/lib/tapioca/dsl/compilers.rb:7
1159
- Tapioca::Dsl::Compilers::DIRECTORY = T.let(T.unsafe(nil), String)
1160
-
1161
- # DSL compilers are either built-in to Tapioca and live under the
1162
- # `Tapioca::Dsl::Compilers` namespace (i.e. this namespace), and
1163
- # can be referred to by just using the class name, or they live in
1164
- # a different namespace and can only be referred to using their fully
1165
- # qualified name. This constant encapsulates that dual lookup when
1166
- # a compiler needs to be resolved by name.
1167
- #
1168
- # source://tapioca-0.9.4/lib/tapioca/dsl/compilers.rb:18
1169
- Tapioca::Dsl::Compilers::NAMESPACES = T.let(T.unsafe(nil), Array)
1170
-
1171
- # source://tapioca-0.9.4/lib/tapioca/dsl/pipeline.rb:6
1172
- class Tapioca::Dsl::Pipeline
1173
- # source://tapioca-0.9.4/lib/tapioca/dsl/pipeline.rb:30
1174
- sig do
1175
- params(
1176
- requested_constants: T::Array[::Module],
1177
- requested_compilers: T::Array[T.class_of(Tapioca::Dsl::Compiler)],
1178
- excluded_compilers: T::Array[T.class_of(Tapioca::Dsl::Compiler)],
1179
- error_handler: T.proc.params(error: ::String).void,
1180
- number_of_workers: T.nilable(::Integer)
1181
- ).void
1182
- end
1183
- def initialize(requested_constants:, requested_compilers: T.unsafe(nil), excluded_compilers: T.unsafe(nil), error_handler: T.unsafe(nil), number_of_workers: T.unsafe(nil)); end
1184
-
1185
- # source://tapioca-0.9.4/lib/tapioca/dsl/pipeline.rb:82
1186
- sig { params(error: ::String).void }
1187
- def add_error(error); end
1188
-
1189
- # source://tapioca-0.9.4/lib/tapioca/dsl/pipeline.rb:87
1190
- sig { params(compiler_name: ::String).returns(T::Boolean) }
1191
- def compiler_enabled?(compiler_name); end
1192
-
1193
- # source://tapioca-0.9.4/lib/tapioca/dsl/pipeline.rb:10
1194
- sig { returns(T::Enumerable[T.class_of(Tapioca::Dsl::Compiler)]) }
1195
- def compilers; end
1196
-
1197
- # source://tapioca-0.9.4/lib/tapioca/dsl/pipeline.rb:16
1198
- sig { returns(T.proc.params(error: ::String).void) }
1199
- def error_handler; end
1200
-
1201
- # source://tapioca-0.9.4/lib/tapioca/dsl/pipeline.rb:19
1202
- sig { returns(T::Array[::String]) }
1203
- def errors; end
1204
-
1205
- # source://tapioca-0.9.4/lib/tapioca/dsl/pipeline.rb:13
1206
- sig { returns(T::Array[::Module]) }
1207
- def requested_constants; end
1208
-
1209
- # source://tapioca-0.9.4/lib/tapioca/dsl/pipeline.rb:52
1210
- sig do
1211
- type_parameters(:T)
1212
- .params(
1213
- blk: T.proc.params(constant: ::Module, rbi: ::RBI::File).returns(T.type_parameter(:T))
1214
- ).returns(T::Array[T.type_parameter(:T)])
1215
- end
1216
- def run(&blk); end
1217
-
1218
- private
1219
-
1220
- # source://tapioca-0.9.4/lib/tapioca/dsl/pipeline.rb:120
1221
- sig { params(constants: T::Set[::Module]).returns(T::Set[::Module]) }
1222
- def filter_anonymous_and_reloaded_constants(constants); end
1223
-
1224
- # source://tapioca-0.9.4/lib/tapioca/dsl/pipeline.rb:103
1225
- sig do
1226
- params(
1227
- requested_compilers: T::Array[T.class_of(Tapioca::Dsl::Compiler)],
1228
- excluded_compilers: T::Array[T.class_of(Tapioca::Dsl::Compiler)]
1229
- ).returns(T::Enumerable[T.class_of(Tapioca::Dsl::Compiler)])
1230
- end
1231
- def gather_compilers(requested_compilers, excluded_compilers); end
1232
-
1233
- # source://tapioca-0.9.4/lib/tapioca/dsl/pipeline.rb:111
1234
- sig { params(requested_constants: T::Array[::Module]).returns(T::Set[::Module]) }
1235
- def gather_constants(requested_constants); end
1236
-
1237
- # source://tapioca-0.9.4/lib/tapioca/dsl/pipeline.rb:145
1238
- sig { params(constant: ::Module).returns(T.nilable(::RBI::File)) }
1239
- def rbi_for_constant(constant); end
1240
-
1241
- # source://tapioca-0.9.4/lib/tapioca/dsl/pipeline.rb:164
1242
- sig { params(error: ::String).returns(T.noreturn) }
1243
- def report_error(error); end
1244
- end
1245
-
1246
- # source://tapioca-0.9.4/lib/tapioca/helpers/env_helper.rb:5
1247
- module Tapioca::EnvHelper
1248
- requires_ancestor { Thor }
1249
-
1250
- # source://tapioca-0.9.4/lib/tapioca/helpers/env_helper.rb:12
1251
- sig { params(options: T::Hash[::Symbol, T.untyped]).void }
1252
- def set_environment(options); end
1253
- end
1254
-
1255
- class Tapioca::Error < ::StandardError; end
1256
-
1257
- # source://tapioca-0.9.4/lib/tapioca/executor.rb:5
1258
- class Tapioca::Executor
1259
- # source://tapioca-0.9.4/lib/tapioca/executor.rb:11
1260
- sig { params(queue: T::Array[T.untyped], number_of_workers: T.nilable(::Integer)).void }
1261
- def initialize(queue, number_of_workers: T.unsafe(nil)); end
1262
-
1263
- # source://tapioca-0.9.4/lib/tapioca/executor.rb:28
1264
- sig do
1265
- type_parameters(:T)
1266
- .params(
1267
- block: T.proc.params(item: T.untyped).returns(T.type_parameter(:T))
1268
- ).returns(T::Array[T.type_parameter(:T)])
1269
- end
1270
- def run_in_parallel(&block); end
1271
- end
1272
-
1273
- # source://tapioca-0.9.4/lib/tapioca/executor.rb:8
1274
- Tapioca::Executor::MINIMUM_ITEMS_PER_WORKER = T.let(T.unsafe(nil), Integer)
1275
-
1276
- # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:5
1277
- module Tapioca::Gem; end
1278
-
1279
- # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:77
1280
- class Tapioca::Gem::ConstNodeAdded < ::Tapioca::Gem::NodeAdded
1281
- # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:84
1282
- sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Const).void }
1283
- def initialize(symbol, constant, node); end
1284
-
1285
- # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:81
1286
- sig { returns(::RBI::Const) }
1287
- def node; end
1288
- end
1289
-
1290
- # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:26
1291
- class Tapioca::Gem::ConstantFound < ::Tapioca::Gem::Event
1292
- # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:36
1293
- sig { params(symbol: ::String, constant: ::BasicObject).void }
1294
- def initialize(symbol, constant); end
1295
-
1296
- # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:33
1297
- sig { returns(::BasicObject) }
1298
- def constant; end
1299
-
1300
- # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:30
1301
- sig { returns(::String) }
1302
- def symbol; end
1303
- end
1304
-
1305
- # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
1306
- #
1307
- # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:6
1308
- class Tapioca::Gem::Event
1309
- abstract!
1310
-
1311
- # source://sorbet-runtime-0.5.10346/lib/types/private/abstract/declare.rb:37
1312
- def initialize(*args, **_arg1, &blk); end
1313
- end
1314
-
1315
- # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:43
1316
- class Tapioca::Gem::ForeignConstantFound < ::Tapioca::Gem::ConstantFound
1317
- # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:52
1318
- sig { params(symbol: ::String, constant: ::Module).void }
1319
- def initialize(symbol, constant); end
1320
-
1321
- # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:47
1322
- sig { override.returns(::Module) }
1323
- def constant; end
1324
- end
1325
-
1326
- # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:103
1327
- class Tapioca::Gem::ForeignScopeNodeAdded < ::Tapioca::Gem::ScopeNodeAdded; end
1328
-
1329
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/base.rb:6
1330
- module Tapioca::Gem::Listeners; end
1331
-
1332
- # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
1333
- #
1334
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/base.rb:7
1335
- class Tapioca::Gem::Listeners::Base
1336
- abstract!
1337
-
1338
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/base.rb:14
1339
- sig { params(pipeline: ::Tapioca::Gem::Pipeline).void }
1340
- def initialize(pipeline); end
1341
-
1342
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/base.rb:19
1343
- sig { params(event: ::Tapioca::Gem::NodeAdded).void }
1344
- def dispatch(event); end
1345
-
1346
- private
1347
-
1348
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/base.rb:49
1349
- sig { params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
1350
- def ignore?(event); end
1351
-
1352
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/base.rb:37
1353
- sig { params(event: ::Tapioca::Gem::ConstNodeAdded).void }
1354
- def on_const(event); end
1355
-
1356
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/base.rb:45
1357
- sig { params(event: ::Tapioca::Gem::MethodNodeAdded).void }
1358
- def on_method(event); end
1359
-
1360
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/base.rb:41
1361
- sig { params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
1362
- def on_scope(event); end
1363
- end
1364
-
1365
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/dynamic_mixins.rb:7
1366
- class Tapioca::Gem::Listeners::DynamicMixins < ::Tapioca::Gem::Listeners::Base
1367
- include ::Tapioca::Runtime::Reflection
1368
-
1369
- private
1370
-
1371
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/dynamic_mixins.rb:31
1372
- sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
1373
- def ignore?(event); end
1374
-
1375
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/dynamic_mixins.rb:15
1376
- sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
1377
- def on_scope(event); end
1378
- end
1379
-
1380
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/foreign_constants.rb:7
1381
- class Tapioca::Gem::Listeners::ForeignConstants < ::Tapioca::Gem::Listeners::Base
1382
- include ::Tapioca::Runtime::Reflection
1383
-
1384
- private
1385
-
1386
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/foreign_constants.rb:59
1387
- sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
1388
- def ignore?(event); end
1389
-
1390
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/foreign_constants.rb:54
1391
- sig { params(location: ::String).returns(T::Boolean) }
1392
- def mixed_in_by_gem?(location); end
1393
-
1394
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/foreign_constants.rb:15
1395
- sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
1396
- def on_scope(event); end
1397
- end
1398
-
1399
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/methods.rb:7
1400
- class Tapioca::Gem::Listeners::Methods < ::Tapioca::Gem::Listeners::Base
1401
- include ::Tapioca::SorbetHelper
1402
- include ::Tapioca::RBIHelper
1403
- include ::Tapioca::Runtime::Reflection
1404
-
1405
- private
1406
-
1407
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/methods.rb:34
1408
- sig { params(tree: ::RBI::Tree, module_name: ::String, mod: ::Module, for_visibility: T::Array[::Symbol]).void }
1409
- def compile_directly_owned_methods(tree, module_name, mod, for_visibility = T.unsafe(nil)); end
1410
-
1411
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/methods.rb:63
1412
- sig do
1413
- params(
1414
- tree: ::RBI::Tree,
1415
- symbol_name: ::String,
1416
- constant: ::Module,
1417
- method: T.nilable(::UnboundMethod),
1418
- visibility: ::RBI::Visibility
1419
- ).void
1420
- end
1421
- def compile_method(tree, symbol_name, constant, method, visibility = T.unsafe(nil)); end
1422
-
1423
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/methods.rb:191
1424
- sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
1425
- def ignore?(event); end
1426
-
1427
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/methods.rb:184
1428
- sig { params(constant: ::Module).returns(T.nilable(::UnboundMethod)) }
1429
- def initialize_method_for(constant); end
1430
-
1431
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/methods.rb:165
1432
- sig { params(mod: ::Module).returns(T::Hash[::Symbol, T::Array[::Symbol]]) }
1433
- def method_names_by_visibility(mod); end
1434
-
1435
- # Check whether the method is defined by the constant.
1436
- #
1437
- # In most cases, it works to check that the constant is the method owner. However,
1438
- # in the case that a method is also defined in a module prepended to the constant, it
1439
- # will be owned by the prepended module, not the constant.
1440
- #
1441
- # This method implements a better way of checking whether a constant defines a method.
1442
- # It walks up the ancestor tree via the `super_method` method; if any of the super
1443
- # methods are owned by the constant, it means that the constant declares the method.
1444
- #
1445
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/methods.rb:151
1446
- sig { params(method: ::UnboundMethod, constant: ::Module).returns(T::Boolean) }
1447
- def method_owned_by_constant?(method, constant); end
1448
-
1449
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/methods.rb:16
1450
- sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
1451
- def on_scope(event); end
1452
-
1453
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/methods.rb:174
1454
- sig { params(constant: ::Module, method_name: ::String).returns(T::Boolean) }
1455
- def struct_method?(constant, method_name); end
1456
- end
1457
-
1458
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/mixins.rb:7
1459
- class Tapioca::Gem::Listeners::Mixins < ::Tapioca::Gem::Listeners::Base
1460
- include ::Tapioca::Runtime::Reflection
1461
-
1462
- private
1463
-
1464
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/mixins.rb:42
1465
- sig do
1466
- params(
1467
- tree: ::RBI::Tree,
1468
- constant: ::Module,
1469
- mods: T::Array[::Module],
1470
- mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type
1471
- ).void
1472
- end
1473
- def add_mixins(tree, constant, mods, mixin_type); end
1474
-
1475
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/mixins.rb:88
1476
- sig { params(mixin_name: ::String).returns(T::Boolean) }
1477
- def filtered_mixin?(mixin_name); end
1478
-
1479
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/mixins.rb:95
1480
- sig { params(constant: ::Module).returns(T::Array[::Module]) }
1481
- def interesting_ancestors_of(constant); end
1482
-
1483
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/mixins.rb:75
1484
- sig do
1485
- params(
1486
- constant: ::Module,
1487
- mixin: ::Module,
1488
- mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type
1489
- ).returns(T::Boolean)
1490
- end
1491
- def mixed_in_by_gem?(constant, mixin, mixin_type); end
1492
-
1493
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/mixins.rb:15
1494
- sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
1495
- def on_scope(event); end
1496
- end
1497
-
1498
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/remove_empty_payload_scopes.rb:7
1499
- class Tapioca::Gem::Listeners::RemoveEmptyPayloadScopes < ::Tapioca::Gem::Listeners::Base
1500
- include ::Tapioca::Runtime::Reflection
1501
-
1502
- private
1503
-
1504
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/remove_empty_payload_scopes.rb:20
1505
- sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
1506
- def ignore?(event); end
1507
-
1508
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/remove_empty_payload_scopes.rb:15
1509
- sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
1510
- def on_scope(event); end
1511
- end
1512
-
1513
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_enums.rb:7
1514
- class Tapioca::Gem::Listeners::SorbetEnums < ::Tapioca::Gem::Listeners::Base
1515
- private
1516
-
1517
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_enums.rb:25
1518
- sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
1519
- def ignore?(event); end
1520
-
1521
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_enums.rb:13
1522
- sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
1523
- def on_scope(event); end
1524
- end
1525
-
1526
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_helpers.rb:7
1527
- class Tapioca::Gem::Listeners::SorbetHelpers < ::Tapioca::Gem::Listeners::Base
1528
- include ::Tapioca::Runtime::Reflection
1529
-
1530
- private
1531
-
1532
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_helpers.rb:28
1533
- sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
1534
- def ignore?(event); end
1535
-
1536
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_helpers.rb:15
1537
- sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
1538
- def on_scope(event); end
1539
- end
1540
-
1541
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_props.rb:7
1542
- class Tapioca::Gem::Listeners::SorbetProps < ::Tapioca::Gem::Listeners::Base
1543
- private
1544
-
1545
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_props.rb:32
1546
- sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
1547
- def ignore?(event); end
1548
-
1549
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_props.rb:13
1550
- sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
1551
- def on_scope(event); end
1552
- end
1553
-
1554
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_required_ancestors.rb:7
1555
- class Tapioca::Gem::Listeners::SorbetRequiredAncestors < ::Tapioca::Gem::Listeners::Base
1556
- private
1557
-
1558
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_required_ancestors.rb:23
1559
- sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
1560
- def ignore?(event); end
1561
-
1562
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_required_ancestors.rb:13
1563
- sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
1564
- def on_scope(event); end
1565
- end
1566
-
1567
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_signatures.rb:7
1568
- class Tapioca::Gem::Listeners::SorbetSignatures < ::Tapioca::Gem::Listeners::Base
1569
- include ::Tapioca::Runtime::Reflection
1570
- include ::Tapioca::SorbetHelper
1571
- include ::Tapioca::RBIHelper
1572
-
1573
- private
1574
-
1575
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_signatures.rb:26
1576
- sig { params(signature: T.untyped, parameters: T::Array[[::Symbol, ::String]]).returns(::RBI::Sig) }
1577
- def compile_signature(signature, parameters); end
1578
-
1579
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_signatures.rb:78
1580
- sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
1581
- def ignore?(event); end
1582
-
1583
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_signatures.rb:18
1584
- sig { override.params(event: ::Tapioca::Gem::MethodNodeAdded).void }
1585
- def on_method(event); end
1586
-
1587
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_signatures.rb:68
1588
- sig { params(signature: T.untyped).returns(T::Boolean) }
1589
- def signature_final?(signature); end
1590
- end
1591
-
1592
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_signatures.rb:13
1593
- Tapioca::Gem::Listeners::SorbetSignatures::TYPE_PARAMETER_MATCHER = T.let(T.unsafe(nil), Regexp)
1594
-
1595
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_type_variables.rb:7
1596
- class Tapioca::Gem::Listeners::SorbetTypeVariables < ::Tapioca::Gem::Listeners::Base
1597
- include ::Tapioca::Runtime::Reflection
1598
-
1599
- private
1600
-
1601
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_type_variables.rb:27
1602
- sig { params(tree: ::RBI::Tree, constant: ::Module).void }
1603
- def compile_type_variable_declarations(tree, constant); end
1604
-
1605
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_type_variables.rb:50
1606
- sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
1607
- def ignore?(event); end
1608
-
1609
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/sorbet_type_variables.rb:15
1610
- sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
1611
- def on_scope(event); end
1612
- end
1613
-
1614
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/source_location.rb:7
1615
- class Tapioca::Gem::Listeners::SourceLocation < ::Tapioca::Gem::Listeners::Base
1616
- private
1617
-
1618
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/source_location.rb:41
1619
- sig { params(node: ::RBI::NodeWithComments, file: T.nilable(::String), line: T.nilable(::Integer)).void }
1620
- def add_source_location_comment(node, file, line); end
1621
-
1622
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/source_location.rb:13
1623
- sig { override.params(event: ::Tapioca::Gem::ConstNodeAdded).void }
1624
- def on_const(event); end
1625
-
1626
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/source_location.rb:35
1627
- sig { override.params(event: ::Tapioca::Gem::MethodNodeAdded).void }
1628
- def on_method(event); end
1629
-
1630
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/source_location.rb:19
1631
- sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
1632
- def on_scope(event); end
1633
- end
1634
-
1635
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/subconstants.rb:7
1636
- class Tapioca::Gem::Listeners::Subconstants < ::Tapioca::Gem::Listeners::Base
1637
- include ::Tapioca::Runtime::Reflection
1638
-
1639
- private
1640
-
1641
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/subconstants.rb:36
1642
- sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
1643
- def ignore?(event); end
1644
-
1645
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/subconstants.rb:15
1646
- sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
1647
- def on_scope(event); end
1648
- end
1649
-
1650
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/yard_doc.rb:7
1651
- class Tapioca::Gem::Listeners::YardDoc < ::Tapioca::Gem::Listeners::Base
1652
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/yard_doc.rb:24
1653
- sig { params(pipeline: ::Tapioca::Gem::Pipeline).void }
1654
- def initialize(pipeline); end
1655
-
1656
- private
1657
-
1658
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/yard_doc.rb:51
1659
- sig { params(name: ::String, sigs: T::Array[::RBI::Sig]).returns(T::Array[::RBI::Comment]) }
1660
- def documentation_comments(name, sigs: T.unsafe(nil)); end
1661
-
1662
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/yard_doc.rb:95
1663
- sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
1664
- def ignore?(event); end
1665
-
1666
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/yard_doc.rb:32
1667
- sig { override.params(event: ::Tapioca::Gem::ConstNodeAdded).void }
1668
- def on_const(event); end
1669
-
1670
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/yard_doc.rb:42
1671
- sig { override.params(event: ::Tapioca::Gem::MethodNodeAdded).void }
1672
- def on_method(event); end
1673
-
1674
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/yard_doc.rb:37
1675
- sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
1676
- def on_scope(event); end
1677
- end
1678
-
1679
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/yard_doc.rb:10
1680
- Tapioca::Gem::Listeners::YardDoc::IGNORED_COMMENTS = T.let(T.unsafe(nil), Array)
1681
-
1682
- # source://tapioca-0.9.4/lib/tapioca/gem/listeners/yard_doc.rb:21
1683
- Tapioca::Gem::Listeners::YardDoc::IGNORED_SIG_TAGS = T.let(T.unsafe(nil), Array)
1684
-
1685
- # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:105
1686
- class Tapioca::Gem::MethodNodeAdded < ::Tapioca::Gem::NodeAdded
1687
- # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:130
1688
- sig do
1689
- params(
1690
- symbol: ::String,
1691
- constant: ::Module,
1692
- method: ::UnboundMethod,
1693
- node: ::RBI::Method,
1694
- signature: T.untyped,
1695
- parameters: T::Array[[::Symbol, ::String]]
1696
- ).void
1697
- end
1698
- def initialize(symbol, constant, method, node, signature, parameters); end
1699
-
1700
- # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:109
1701
- sig { returns(::UnboundMethod) }
1702
- def method; end
1703
-
1704
- # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:112
1705
- sig { returns(::RBI::Method) }
1706
- def node; end
1707
-
1708
- # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:118
1709
- sig { returns(T::Array[[::Symbol, ::String]]) }
1710
- def parameters; end
1711
-
1712
- # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:115
1713
- sig { returns(T.untyped) }
1714
- def signature; end
1715
- end
1716
-
1717
- # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
1718
- #
1719
- # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:57
1720
- class Tapioca::Gem::NodeAdded < ::Tapioca::Gem::Event
1721
- abstract!
1722
-
1723
- # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:70
1724
- sig { params(symbol: ::String, constant: ::Module).void }
1725
- def initialize(symbol, constant); end
1726
-
1727
- # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:67
1728
- sig { returns(::Module) }
1729
- def constant; end
1730
-
1731
- # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:64
1732
- sig { returns(::String) }
1733
- def symbol; end
1734
- end
1735
-
1736
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:6
1737
- class Tapioca::Gem::Pipeline
1738
- include ::Tapioca::Runtime::Reflection
1739
- include ::Tapioca::SorbetHelper
1740
- include ::Tapioca::RBIHelper
1741
-
1742
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:17
1743
- sig { params(gem: ::Tapioca::Gemfile::GemSpec, include_doc: T::Boolean, include_loc: T::Boolean).void }
1744
- def initialize(gem, include_doc: T.unsafe(nil), include_loc: T.unsafe(nil)); end
1745
-
1746
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:48
1747
- sig { returns(::RBI::Tree) }
1748
- def compile; end
1749
-
1750
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:14
1751
- sig { returns(::Tapioca::Gemfile::GemSpec) }
1752
- def gem; end
1753
-
1754
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:110
1755
- sig { params(method: ::UnboundMethod).returns(T::Boolean) }
1756
- def method_in_gem?(method); end
1757
-
1758
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:118
1759
- sig { params(constant: ::Module).returns(T.nilable(::String)) }
1760
- def name_of(constant); end
1761
-
1762
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:69
1763
- sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Const).void }
1764
- def push_const(symbol, constant, node); end
1765
-
1766
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:59
1767
- sig { params(symbol: ::String, constant: ::BasicObject).void }
1768
- def push_constant(symbol, constant); end
1769
-
1770
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:64
1771
- sig { params(symbol: ::String, constant: ::Module).void }
1772
- def push_foreign_constant(symbol, constant); end
1773
-
1774
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:83
1775
- sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Scope).void }
1776
- def push_foreign_scope(symbol, constant, node); end
1777
-
1778
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:97
1779
- sig do
1780
- params(
1781
- symbol: ::String,
1782
- constant: ::Module,
1783
- method: ::UnboundMethod,
1784
- node: ::RBI::Method,
1785
- signature: T.untyped,
1786
- parameters: T::Array[[::Symbol, ::String]]
1787
- ).void
1788
- end
1789
- def push_method(symbol, constant, method, node, signature, parameters); end
1790
-
1791
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:76
1792
- sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Scope).void }
1793
- def push_scope(symbol, constant, node); end
1794
-
1795
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:54
1796
- sig { params(symbol: ::String).void }
1797
- def push_symbol(symbol); end
1798
-
1799
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:102
1800
- sig { params(symbol_name: ::String).returns(T::Boolean) }
1801
- def symbol_in_payload?(symbol_name); end
1802
-
1803
- private
1804
-
1805
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:364
1806
- sig { params(name: ::String).void }
1807
- def add_to_alias_namespace(name); end
1808
-
1809
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:369
1810
- sig { params(name: ::String).returns(T::Boolean) }
1811
- def alias_namespaced?(name); end
1812
-
1813
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:213
1814
- sig { params(name: ::String, constant: ::Module).void }
1815
- def compile_alias(name, constant); end
1816
-
1817
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:199
1818
- sig { params(symbol: ::String, constant: ::BasicObject).void }
1819
- def compile_constant(symbol, constant); end
1820
-
1821
- # Compile
1822
- #
1823
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:194
1824
- sig { params(symbol: ::String, constant: ::Module).void }
1825
- def compile_foreign_constant(symbol, constant); end
1826
-
1827
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:269
1828
- sig { params(name: ::String, constant: ::Module, foreign_constant: T::Boolean).void }
1829
- def compile_module(name, constant, foreign_constant: T.unsafe(nil)); end
1830
-
1831
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:234
1832
- sig { params(name: ::String, value: ::BasicObject).void }
1833
- def compile_object(name, value); end
1834
-
1835
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:294
1836
- sig { params(constant: ::Class).returns(T.nilable(::String)) }
1837
- def compile_superclass(constant); end
1838
-
1839
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:343
1840
- sig { params(constant: ::Module, strict: T::Boolean).returns(T::Boolean) }
1841
- def defined_in_gem?(constant, strict: T.unsafe(nil)); end
1842
-
1843
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:146
1844
- sig { params(event: ::Tapioca::Gem::Event).void }
1845
- def dispatch(event); end
1846
-
1847
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:386
1848
- sig { params(constant: T.all(::Module, ::T::Generic)).returns(::String) }
1849
- def generic_name_of(constant); end
1850
-
1851
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:355
1852
- sig { params(constant: ::Module).returns(T::Array[::String]) }
1853
- def get_file_candidates(constant); end
1854
-
1855
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:133
1856
- sig { params(gem: ::Tapioca::Gemfile::GemSpec).returns(T::Set[::String]) }
1857
- def load_bootstrap_symbols(gem); end
1858
-
1859
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:376
1860
- sig { params(name: ::String).void }
1861
- def mark_seen(name); end
1862
-
1863
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:399
1864
- sig { params(constant: ::Module, class_name: T.nilable(::String)).returns(T.nilable(::String)) }
1865
- def name_of_proxy_target(constant, class_name); end
1866
-
1867
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:141
1868
- sig { returns(::Tapioca::Gem::Event) }
1869
- def next_event; end
1870
-
1871
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:169
1872
- sig { params(event: ::Tapioca::Gem::ConstantFound).void }
1873
- def on_constant(event); end
1874
-
1875
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:187
1876
- sig { params(event: ::Tapioca::Gem::NodeAdded).void }
1877
- def on_node(event); end
1878
-
1879
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:160
1880
- sig { params(event: ::Tapioca::Gem::SymbolFound).void }
1881
- def on_symbol(event); end
1882
-
1883
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:381
1884
- sig { params(name: ::String).returns(T::Boolean) }
1885
- def seen?(name); end
1886
- end
1887
-
1888
- # source://tapioca-0.9.4/lib/tapioca/gem/pipeline.rb:11
1889
- Tapioca::Gem::Pipeline::IGNORED_SYMBOLS = T.let(T.unsafe(nil), Array)
1890
-
1891
- # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:90
1892
- class Tapioca::Gem::ScopeNodeAdded < ::Tapioca::Gem::NodeAdded
1893
- # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:97
1894
- sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Scope).void }
1895
- def initialize(symbol, constant, node); end
1896
-
1897
- # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:94
1898
- sig { returns(::RBI::Scope) }
1899
- def node; end
1900
- end
1901
-
1902
- # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:13
1903
- class Tapioca::Gem::SymbolFound < ::Tapioca::Gem::Event
1904
- # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:20
1905
- sig { params(symbol: ::String).void }
1906
- def initialize(symbol); end
1907
-
1908
- # source://tapioca-0.9.4/lib/tapioca/gem/events.rb:17
1909
- sig { returns(::String) }
1910
- def symbol; end
1911
- end
1912
-
1913
- # source://tapioca-0.9.4/lib/tapioca/helpers/gem_helper.rb:5
1914
- module Tapioca::GemHelper
1915
- # source://tapioca-0.9.4/lib/tapioca/helpers/gem_helper.rb:9
1916
- sig { params(gemfile_dir: ::String, full_gem_path: ::String).returns(T::Boolean) }
1917
- def gem_in_app_dir?(gemfile_dir, full_gem_path); end
1918
-
1919
- # source://tapioca-0.9.4/lib/tapioca/helpers/gem_helper.rb:15
1920
- sig { params(full_gem_path: ::String).returns(T::Boolean) }
1921
- def gem_in_bundle_path?(full_gem_path); end
1922
-
1923
- # source://tapioca-0.9.4/lib/tapioca/helpers/gem_helper.rb:20
1924
- sig { params(path: T.any(::Pathname, ::String)).returns(::String) }
1925
- def to_realpath(path); end
1926
- end
1927
-
1928
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:5
1929
- class Tapioca::Gemfile
1930
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:69
1931
- sig { params(exclude: T::Array[::String]).void }
1932
- def initialize(exclude); end
1933
-
1934
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:60
1935
- sig { returns(::Bundler::Definition) }
1936
- def definition; end
1937
-
1938
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:63
1939
- sig { returns(T::Array[::Tapioca::Gemfile::GemSpec]) }
1940
- def dependencies; end
1941
-
1942
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:80
1943
- sig { params(gem_name: ::String).returns(T.nilable(::Tapioca::Gemfile::GemSpec)) }
1944
- def gem(gem_name); end
1945
-
1946
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:66
1947
- sig { returns(T::Array[::String]) }
1948
- def missing_specs; end
1949
-
1950
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:85
1951
- sig { void }
1952
- def require_bundle; end
1953
-
1954
- private
1955
-
1956
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:131
1957
- sig { returns(::String) }
1958
- def dir; end
1959
-
1960
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:92
1961
- sig { returns(::File) }
1962
- def gemfile; end
1963
-
1964
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:126
1965
- sig { returns(T::Array[::Symbol]) }
1966
- def groups; end
1967
-
1968
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:95
1969
- sig { returns([T::Array[::Tapioca::Gemfile::GemSpec], T::Array[::String]]) }
1970
- def load_dependencies; end
1971
-
1972
- # @return [File]
1973
- #
1974
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:92
1975
- def lockfile; end
1976
-
1977
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:106
1978
- sig { returns([T::Enumerable[T.any(::Bundler::StubSpecification, ::Gem::Specification)], T::Array[::String]]) }
1979
- def materialize_deps; end
1980
-
1981
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:121
1982
- sig { returns(::Bundler::Runtime) }
1983
- def runtime; end
1984
- end
1985
-
1986
- # This is a module that gets prepended to `Bundler::Dependency` and
1987
- # makes sure even gems marked as `require: false` are required during
1988
- # `Bundler.require`.
1989
- #
1990
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:18
1991
- module Tapioca::Gemfile::AutoRequireHook
1992
- requires_ancestor { Bundler::Dependency }
1993
-
1994
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:39
1995
- sig { returns(T.untyped) }
1996
- def autorequire; end
1997
-
1998
- class << self
1999
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:30
2000
- sig { params(exclude: T::Array[::String]).returns(T::Array[::String]) }
2001
- def exclude=(exclude); end
2002
-
2003
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:33
2004
- sig { params(name: T.untyped).returns(T::Boolean) }
2005
- def excluded?(name); end
2006
- end
2007
- end
2008
-
2009
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:135
2010
- class Tapioca::Gemfile::GemSpec
2011
- include ::Tapioca::GemHelper
2012
-
2013
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:154
2014
- sig { params(spec: T.any(::Bundler::StubSpecification, ::Gem::Specification)).void }
2015
- def initialize(spec); end
2016
-
2017
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:179
2018
- sig { params(path: ::String).returns(T::Boolean) }
2019
- def contains_path?(path); end
2020
-
2021
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:198
2022
- sig { returns(T::Boolean) }
2023
- def export_rbi_files?; end
2024
-
2025
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:193
2026
- sig { returns(T::Array[::String]) }
2027
- def exported_rbi_files; end
2028
-
2029
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:203
2030
- sig { returns(::RBI::MergeTree) }
2031
- def exported_rbi_tree; end
2032
-
2033
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:151
2034
- sig { returns(T::Array[::Pathname]) }
2035
- def files; end
2036
-
2037
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:148
2038
- sig { returns(::String) }
2039
- def full_gem_path; end
2040
-
2041
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:164
2042
- sig { params(gemfile_dir: ::String).returns(T::Boolean) }
2043
- def ignore?(gemfile_dir); end
2044
-
2045
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:169
2046
- sig { returns(::String) }
2047
- def name; end
2048
-
2049
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:188
2050
- sig { void }
2051
- def parse_yard_docs; end
2052
-
2053
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:174
2054
- sig { returns(::String) }
2055
- def rbi_file_name; end
2056
-
2057
- # @return [String]
2058
- #
2059
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:148
2060
- def version; end
2061
-
2062
- private
2063
-
2064
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:217
2065
- sig { returns(T::Array[::Pathname]) }
2066
- def collect_files; end
2067
-
2068
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:232
2069
- sig { returns(T.nilable(T::Boolean)) }
2070
- def default_gem?; end
2071
-
2072
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:290
2073
- sig { returns(T::Boolean) }
2074
- def gem_ignored?; end
2075
-
2076
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:269
2077
- sig { params(path: ::String).returns(T::Boolean) }
2078
- def has_parent_gemspec?(path); end
2079
-
2080
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:237
2081
- sig { returns(::Regexp) }
2082
- def require_paths_prefix_matcher; end
2083
-
2084
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:248
2085
- sig { params(file: ::String).returns(::Pathname) }
2086
- def resolve_to_ruby_lib_dir(file); end
2087
-
2088
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:262
2089
- sig { returns(::String) }
2090
- def version_string; end
2091
- end
2092
-
2093
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:139
2094
- Tapioca::Gemfile::GemSpec::IGNORED_GEMS = T.let(T.unsafe(nil), Array)
2095
-
2096
- # source://tapioca-0.9.4/lib/tapioca/gemfile.rb:8
2097
- Tapioca::Gemfile::Spec = T.type_alias { T.any(::Bundler::StubSpecification, ::Gem::Specification) }
2098
-
2099
- # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_files_helper.rb:5
2100
- module Tapioca::RBIFilesHelper
2101
- requires_ancestor { Tapioca::SorbetHelper }
2102
- requires_ancestor { Thor::Shell }
2103
-
2104
- # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_files_helper.rb:48
2105
- sig do
2106
- params(
2107
- index: ::RBI::Index,
2108
- shim_rbi_dir: ::String,
2109
- todo_rbi_file: ::String
2110
- ).returns(T::Hash[::String, T::Array[::RBI::Node]])
2111
- end
2112
- def duplicated_nodes_from_index(index, shim_rbi_dir:, todo_rbi_file:); end
2113
-
2114
- # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_files_helper.rb:13
2115
- sig { params(index: ::RBI::Index, kind: ::String, file: ::String).void }
2116
- def index_rbi(index, kind, file); end
2117
-
2118
- # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_files_helper.rb:25
2119
- sig { params(index: ::RBI::Index, kind: ::String, dir: ::String, number_of_workers: T.nilable(::Integer)).void }
2120
- def index_rbis(index, kind, dir, number_of_workers:); end
2121
-
2122
- # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_files_helper.rb:65
2123
- sig { params(loc: ::RBI::Loc, path_prefix: T.nilable(::String)).returns(::String) }
2124
- def location_to_payload_url(loc, path_prefix:); end
2125
-
2126
- # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_files_helper.rb:86
2127
- sig do
2128
- params(
2129
- command: ::String,
2130
- gem_dir: ::String,
2131
- dsl_dir: ::String,
2132
- auto_strictness: T::Boolean,
2133
- gems: T::Array[::Tapioca::Gemfile::GemSpec],
2134
- compilers: T::Enumerable[::Class]
2135
- ).void
2136
- end
2137
- def validate_rbi_files(command:, gem_dir:, dsl_dir:, auto_strictness:, gems: T.unsafe(nil), compilers: T.unsafe(nil)); end
2138
-
2139
- private
2140
-
2141
- # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_files_helper.rb:208
2142
- sig { params(nodes: T::Array[::RBI::Node]).returns(T::Array[::RBI::Scope]) }
2143
- def extract_empty_scopes(nodes); end
2144
-
2145
- # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_files_helper.rb:213
2146
- sig { params(nodes: T::Array[::RBI::Node]).returns(T::Array[T.any(::RBI::Attr, ::RBI::Method)]) }
2147
- def extract_methods_and_attrs(nodes); end
2148
-
2149
- # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_files_helper.rb:220
2150
- sig { params(nodes: T::Array[::RBI::Node]).returns(T::Array[T.any(::RBI::Mixin, ::RBI::RequiresAncestor)]) }
2151
- def extract_mixins(nodes); end
2152
-
2153
- # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_files_helper.rb:227
2154
- sig do
2155
- params(
2156
- nodes: T::Array[T.any(::RBI::Attr, ::RBI::Method)]
2157
- ).returns(T::Array[T.any(::RBI::Attr, ::RBI::Method)])
2158
- end
2159
- def extract_nodes_with_sigs(nodes); end
2160
-
2161
- # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_files_helper.rb:201
2162
- sig do
2163
- params(
2164
- nodes: T::Array[::RBI::Node],
2165
- shim_rbi_dir: ::String,
2166
- todo_rbi_file: ::String
2167
- ).returns(T::Array[::RBI::Node])
2168
- end
2169
- def extract_shims_and_todos(nodes, shim_rbi_dir:, todo_rbi_file:); end
2170
-
2171
- # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_files_helper.rb:259
2172
- sig { params(path: ::String).returns(::String) }
2173
- def gem_name_from_rbi_path(path); end
2174
-
2175
- # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_files_helper.rb:155
2176
- sig { params(index: ::RBI::Index, files: T::Array[::String], number_of_workers: T.nilable(::Integer)).void }
2177
- def parse_and_index_files(index, files, number_of_workers:); end
2178
-
2179
- # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_files_helper.rb:170
2180
- sig { params(nodes: T::Array[::RBI::Node], shim_rbi_dir: ::String, todo_rbi_file: ::String).returns(T::Boolean) }
2181
- def shims_or_todos_have_duplicates?(nodes, shim_rbi_dir:, todo_rbi_file:); end
2182
-
2183
- # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_files_helper.rb:232
2184
- sig { params(errors: T::Array[::Spoom::Sorbet::Errors::Error], gem_dir: ::String).void }
2185
- def update_gem_rbis_strictnesses(errors, gem_dir); end
2186
- end
2187
-
2188
- # source://tapioca-0.9.4/lib/tapioca/rbi_formatter.rb:5
2189
- class Tapioca::RBIFormatter < ::RBI::Formatter
2190
- # source://tapioca-0.9.4/lib/tapioca/rbi_formatter.rb:22
2191
- sig { params(file: ::RBI::File).void }
2192
- def write_empty_body_comment!(file); end
2193
-
2194
- # source://tapioca-0.9.4/lib/tapioca/rbi_formatter.rb:15
2195
- sig { params(file: ::RBI::File, command: ::String, reason: T.nilable(::String)).void }
2196
- def write_header!(file, command, reason: T.unsafe(nil)); end
2197
- end
2198
-
2199
- # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_helper.rb:5
2200
- module Tapioca::RBIHelper
2201
- include ::Tapioca::SorbetHelper
2202
- extend ::Tapioca::SorbetHelper
2203
- extend ::Tapioca::RBIHelper
2204
-
2205
- # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_helper.rb:42
2206
- sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) }
2207
- def create_block_param(name, type:); end
2208
-
2209
- # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_helper.rb:32
2210
- sig { params(name: ::String, type: ::String, default: ::String).returns(::RBI::TypedParam) }
2211
- def create_kw_opt_param(name, type:, default:); end
2212
-
2213
- # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_helper.rb:27
2214
- sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) }
2215
- def create_kw_param(name, type:); end
2216
-
2217
- # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_helper.rb:37
2218
- sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) }
2219
- def create_kw_rest_param(name, type:); end
2220
-
2221
- # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_helper.rb:17
2222
- sig { params(name: ::String, type: ::String, default: ::String).returns(::RBI::TypedParam) }
2223
- def create_opt_param(name, type:, default:); end
2224
-
2225
- # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_helper.rb:12
2226
- sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) }
2227
- def create_param(name, type:); end
2228
-
2229
- # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_helper.rb:22
2230
- sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) }
2231
- def create_rest_param(name, type:); end
2232
-
2233
- # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_helper.rb:47
2234
- sig { params(param: ::RBI::Param, type: ::String).returns(::RBI::TypedParam) }
2235
- def create_typed_param(param, type); end
2236
-
2237
- # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_helper.rb:52
2238
- sig { params(sig_string: ::String).returns(::String) }
2239
- def sanitize_signature_types(sig_string); end
2240
-
2241
- # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_helper.rb:95
2242
- sig { params(name: ::String).returns(T::Boolean) }
2243
- def valid_method_name?(name); end
2244
-
2245
- # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_helper.rb:109
2246
- sig { params(name: ::String).returns(T::Boolean) }
2247
- def valid_parameter_name?(name); end
2248
-
2249
- class << self
2250
- # source://tapioca-0.9.4/lib/tapioca/helpers/rbi_helper.rb:69
2251
- sig do
2252
- params(
2253
- type: ::String,
2254
- variance: ::Symbol,
2255
- fixed: T.nilable(::String),
2256
- upper: T.nilable(::String),
2257
- lower: T.nilable(::String)
2258
- ).returns(::String)
2259
- end
2260
- def serialize_type_variable(type, variance, fixed, upper, lower); end
2261
- end
2262
- end
2263
-
2264
- # source://tapioca-0.9.4/lib/tapioca/repo_index.rb:5
2265
- class Tapioca::RepoIndex
2266
- # source://tapioca-0.9.4/lib/tapioca/repo_index.rb:22
2267
- sig { void }
2268
- def initialize; end
2269
-
2270
- # source://tapioca-0.9.4/lib/tapioca/repo_index.rb:27
2271
- sig { params(gem_name: ::String).void }
2272
- def <<(gem_name); end
2273
-
2274
- # source://tapioca-0.9.4/lib/tapioca/repo_index.rb:32
2275
- sig { returns(T::Enumerable[::String]) }
2276
- def gems; end
2277
-
2278
- # source://tapioca-0.9.4/lib/tapioca/repo_index.rb:37
2279
- sig { params(gem_name: ::String).returns(T::Boolean) }
2280
- def has_gem?(gem_name); end
2281
-
2282
- class << self
2283
- # source://tapioca-0.9.4/lib/tapioca/repo_index.rb:15
2284
- sig { params(hash: T::Hash[::String, T::Hash[T.untyped, T.untyped]]).returns(Tapioca::RepoIndex) }
2285
- def from_hash(hash); end
2286
-
2287
- # source://tapioca-0.9.4/lib/tapioca/repo_index.rb:10
2288
- sig { params(json: ::String).returns(Tapioca::RepoIndex) }
2289
- def from_json(json); end
2290
- end
2291
- end
2292
-
2293
- # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/autoload.rb:5
2294
- module Tapioca::Runtime; end
2295
-
2296
- # source://tapioca-0.9.4/lib/tapioca/runtime/dynamic_mixin_compiler.rb:6
2297
- class Tapioca::Runtime::DynamicMixinCompiler
2298
- include ::Tapioca::Runtime::Reflection
2299
-
2300
- # source://tapioca-0.9.4/lib/tapioca/runtime/dynamic_mixin_compiler.rb:20
2301
- sig { params(constant: ::Module).void }
2302
- def initialize(constant); end
2303
-
2304
- # @return [Array<Symbol>]
2305
- #
2306
- # source://tapioca-0.9.4/lib/tapioca/runtime/dynamic_mixin_compiler.rb:14
2307
- def class_attribute_predicates; end
2308
-
2309
- # source://tapioca-0.9.4/lib/tapioca/runtime/dynamic_mixin_compiler.rb:14
2310
- sig { returns(T::Array[::Symbol]) }
2311
- def class_attribute_readers; end
2312
-
2313
- # @return [Array<Symbol>]
2314
- #
2315
- # source://tapioca-0.9.4/lib/tapioca/runtime/dynamic_mixin_compiler.rb:14
2316
- def class_attribute_writers; end
2317
-
2318
- # source://tapioca-0.9.4/lib/tapioca/runtime/dynamic_mixin_compiler.rb:137
2319
- sig { params(tree: ::RBI::Tree).void }
2320
- def compile_class_attributes(tree); end
2321
-
2322
- # source://tapioca-0.9.4/lib/tapioca/runtime/dynamic_mixin_compiler.rb:180
2323
- sig { params(tree: ::RBI::Tree).returns([T::Array[::Module], T::Array[::Module]]) }
2324
- def compile_mixes_in_class_methods(tree); end
2325
-
2326
- # source://tapioca-0.9.4/lib/tapioca/runtime/dynamic_mixin_compiler.rb:11
2327
- sig { returns(T::Array[::Module]) }
2328
- def dynamic_extends; end
2329
-
2330
- # @return [Array<Module>]
2331
- #
2332
- # source://tapioca-0.9.4/lib/tapioca/runtime/dynamic_mixin_compiler.rb:11
2333
- def dynamic_includes; end
2334
-
2335
- # source://tapioca-0.9.4/lib/tapioca/runtime/dynamic_mixin_compiler.rb:132
2336
- sig { returns(T::Boolean) }
2337
- def empty_attributes?; end
2338
-
2339
- # source://tapioca-0.9.4/lib/tapioca/runtime/dynamic_mixin_compiler.rb:222
2340
- sig { params(qualified_mixin_name: ::String).returns(T::Boolean) }
2341
- def filtered_mixin?(qualified_mixin_name); end
2342
-
2343
- # @return [Array<Symbol>]
2344
- #
2345
- # source://tapioca-0.9.4/lib/tapioca/runtime/dynamic_mixin_compiler.rb:17
2346
- def instance_attribute_predicates; end
2347
-
2348
- # source://tapioca-0.9.4/lib/tapioca/runtime/dynamic_mixin_compiler.rb:17
2349
- sig { returns(T::Array[::Symbol]) }
2350
- def instance_attribute_readers; end
2351
-
2352
- # @return [Array<Symbol>]
2353
- #
2354
- # source://tapioca-0.9.4/lib/tapioca/runtime/dynamic_mixin_compiler.rb:17
2355
- def instance_attribute_writers; end
2356
-
2357
- # source://tapioca-0.9.4/lib/tapioca/runtime/dynamic_mixin_compiler.rb:215
2358
- sig { params(mod: ::Module, dynamic_extends: T::Array[::Module]).returns(T::Boolean) }
2359
- def module_included_by_another_dynamic_extend?(mod, dynamic_extends); end
2360
- end
2361
-
2362
- # This class is responsible for storing and looking up information related to generic types.
2363
- #
2364
- # The class stores 2 different kinds of data, in two separate lookup tables:
2365
- # 1. a lookup of generic type instances by name: `@generic_instances`
2366
- # 2. a lookup of type variable serializer by constant and type variable
2367
- # instance: `@type_variables`
2368
- #
2369
- # By storing the above data, we can cheaply query each constant against this registry
2370
- # to see if it declares any generic type variables. This becomes a simple lookup in the
2371
- # `@type_variables` hash table with the given constant.
2372
- #
2373
- # If there is no entry, then we can cheaply know that we can skip generic type
2374
- # information generation for this type.
2375
- #
2376
- # On the other hand, if we get a result, then the result will be a hash of type
2377
- # variable to type variable serializers. This allows us to associate type variables
2378
- # to the constant names that represent them, easily.
2379
- #
2380
- # source://tapioca-0.9.4/lib/tapioca/runtime/generic_type_registry.rb:23
2381
- module Tapioca::Runtime::GenericTypeRegistry
2382
- class << self
2383
- # source://tapioca-0.9.4/lib/tapioca/runtime/generic_type_registry.rb:64
2384
- sig { params(instance: ::Object).returns(T::Boolean) }
2385
- def generic_type_instance?(instance); end
2386
-
2387
- # source://tapioca-0.9.4/lib/tapioca/runtime/generic_type_registry.rb:69
2388
- sig { params(constant: ::Module).returns(T.nilable(T::Array[::Tapioca::TypeVariableModule])) }
2389
- def lookup_type_variables(constant); end
2390
-
2391
- # This method is responsible for building the name of the instantiated concrete type
2392
- # and cloning the given constant so that we can return a type that is the same
2393
- # as the current type but is a different instance and has a different name method.
2394
- #
2395
- # We cache those cloned instances by their name in `@generic_instances`, so that
2396
- # we don't keep instantiating a new type every single time it is referenced.
2397
- # For example, `[Foo[Integer], Foo[Integer], Foo[Integer], Foo[String]]` will only
2398
- # result in 2 clones (1 for `Foo[Integer]` and another for `Foo[String]`) and
2399
- # 2 hash lookups (for the other two `Foo[Integer]`s).
2400
- #
2401
- # This method returns the created or cached clone of the constant.
2402
- #
2403
- # source://tapioca-0.9.4/lib/tapioca/runtime/generic_type_registry.rb:49
2404
- sig { params(constant: T.untyped, types: T.untyped).returns(::Module) }
2405
- def register_type(constant, types); end
2406
-
2407
- # This method is called from intercepted calls to `type_member` and `type_template`.
2408
- # We get passed all the arguments to those methods, as well as the `T::Types::TypeVariable`
2409
- # instance generated by the Sorbet defined `type_member`/`type_template` call on `T::Generic`.
2410
- #
2411
- # This method creates a `String` with that data and stores it in the
2412
- # `@type_variables` lookup table, keyed by the `constant` and `type_variable`.
2413
- #
2414
- # Finally, the original `type_variable` is returned from this method, so that the caller
2415
- # can return it from the original methods as well.
2416
- #
2417
- # source://tapioca-0.9.4/lib/tapioca/runtime/generic_type_registry.rb:88
2418
- sig { params(constant: T.untyped, type_variable: ::Tapioca::TypeVariableModule).void }
2419
- def register_type_variable(constant, type_variable); end
2420
-
2421
- private
2422
-
2423
- # source://tapioca-0.9.4/lib/tapioca/runtime/generic_type_registry.rb:97
2424
- sig { params(constant: ::Module, name: ::String).returns(::Module) }
2425
- def create_generic_type(constant, name); end
2426
-
2427
- # source://tapioca-0.9.4/lib/tapioca/runtime/generic_type_registry.rb:135
2428
- sig { params(constant: ::Class).returns(::Class) }
2429
- def create_safe_subclass(constant); end
2430
-
2431
- # source://tapioca-0.9.4/lib/tapioca/runtime/generic_type_registry.rb:162
2432
- sig { params(constant: ::Module).returns(T::Array[::Tapioca::TypeVariableModule]) }
2433
- def lookup_or_initialize_type_variables(constant); end
2434
- end
2435
- end
2436
-
2437
- # source://tapioca-0.9.4/lib/tapioca/runtime/loader.rb:6
2438
- class Tapioca::Runtime::Loader
2439
- include ::Tapioca::GemHelper
2440
- include ::Thor::Base
2441
- include ::Thor::Invocation
2442
- include ::Thor::Shell
2443
- extend ::Thor::Base::ClassMethods
2444
- extend ::Thor::Invocation::ClassMethods
2445
-
2446
- # source://tapioca-0.9.4/lib/tapioca/runtime/loader.rb:14
2447
- sig do
2448
- params(
2449
- gemfile: ::Tapioca::Gemfile,
2450
- initialize_file: T.nilable(::String),
2451
- require_file: T.nilable(::String)
2452
- ).void
2453
- end
2454
- def load_bundle(gemfile, initialize_file, require_file); end
2455
-
2456
- # source://tapioca-0.9.4/lib/tapioca/runtime/loader.rb:27
2457
- sig { params(environment_load: T::Boolean, eager_load: T::Boolean).void }
2458
- def load_rails_application(environment_load: T.unsafe(nil), eager_load: T.unsafe(nil)); end
2459
-
2460
- private
2461
-
2462
- # source://tapioca-0.9.4/lib/tapioca/runtime/loader.rb:88
2463
- sig { void }
2464
- def eager_load_rails_app; end
2465
-
2466
- # source://tapioca-0.9.4/lib/tapioca/runtime/loader.rb:114
2467
- sig { void }
2468
- def load_rails_engines; end
2469
-
2470
- # source://tapioca-0.9.4/lib/tapioca/runtime/loader.rb:59
2471
- sig { returns(T::Array[T.untyped]) }
2472
- def rails_engines; end
2473
-
2474
- # source://tapioca-0.9.4/lib/tapioca/runtime/loader.rb:49
2475
- sig { params(file: T.nilable(::String)).void }
2476
- def require_helper(file); end
2477
-
2478
- # source://tapioca-0.9.4/lib/tapioca/runtime/loader.rb:73
2479
- sig { params(path: ::String).void }
2480
- def safe_require(path); end
2481
-
2482
- # source://tapioca-0.9.4/lib/tapioca/runtime/loader.rb:80
2483
- sig { void }
2484
- def silence_deprecations; end
2485
- end
2486
-
2487
- module Tapioca::Runtime::Reflection
2488
- extend ::Tapioca::Runtime::Reflection
2489
-
2490
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:60
2491
- sig { params(constant: ::Module).returns(T::Array[::Module]) }
2492
- def ancestors_of(constant); end
2493
-
2494
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:75
2495
- sig { params(object: ::BasicObject, other: ::BasicObject).returns(T::Boolean) }
2496
- def are_equal?(object, other); end
2497
-
2498
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:172
2499
- sig { params(singleton_class: ::Module).returns(T.nilable(::Module)) }
2500
- def attached_class_of(singleton_class); end
2501
-
2502
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:39
2503
- sig { params(object: ::BasicObject).returns(::Class) }
2504
- def class_of(object); end
2505
-
2506
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:32
2507
- sig { params(symbol: ::String, inherit: T::Boolean, namespace: ::Module).returns(::BasicObject) }
2508
- def constantize(symbol, inherit: T.unsafe(nil), namespace: T.unsafe(nil)); end
2509
-
2510
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:44
2511
- sig { params(constant: ::Module).returns(T::Array[::Symbol]) }
2512
- def constants_of(constant); end
2513
-
2514
- # Returns an array with all classes that are < than the supplied class.
2515
- #
2516
- # class C; end
2517
- # descendants_of(C) # => []
2518
- #
2519
- # class B < C; end
2520
- # descendants_of(C) # => [B]
2521
- #
2522
- # class A < B; end
2523
- # descendants_of(C) # => [B, A]
2524
- #
2525
- # class D < C; end
2526
- # descendants_of(C) # => [B, A, D]
2527
- #
2528
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:150
2529
- sig do
2530
- type_parameters(:U)
2531
- .params(
2532
- klass: T.all(::Class, T.type_parameter(:U))
2533
- ).returns(T::Array[T.type_parameter(:U)])
2534
- end
2535
- def descendants_of(klass); end
2536
-
2537
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:95
2538
- sig { params(constant: ::Module).returns(T::Array[::Module]) }
2539
- def inherited_ancestors_of(constant); end
2540
-
2541
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:128
2542
- sig { params(constant: ::Module, method: ::Symbol).returns(::Method) }
2543
- def method_of(constant, method); end
2544
-
2545
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:49
2546
- sig { params(constant: ::Module).returns(T.nilable(::String)) }
2547
- def name_of(constant); end
2548
-
2549
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:123
2550
- sig { params(type: ::T::Types::Base).returns(::String) }
2551
- def name_of_type(type); end
2552
-
2553
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:70
2554
- sig { params(object: ::BasicObject).returns(::Integer) }
2555
- def object_id_of(object); end
2556
-
2557
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:90
2558
- sig { params(constant: ::Module).returns(T::Array[::Symbol]) }
2559
- def private_instance_methods_of(constant); end
2560
-
2561
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:85
2562
- sig { params(constant: ::Module).returns(T::Array[::Symbol]) }
2563
- def protected_instance_methods_of(constant); end
2564
-
2565
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:80
2566
- sig { params(constant: ::Module).returns(T::Array[::Symbol]) }
2567
- def public_instance_methods_of(constant); end
2568
-
2569
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:104
2570
- sig { params(constant: ::Module).returns(T.nilable(::String)) }
2571
- def qualified_name_of(constant); end
2572
-
2573
- # Examines the call stack to identify the closest location where a "require" is performed
2574
- # by searching for the label "<top (required)>". If none is found, it returns the location
2575
- # labeled "<main>", which is the original call site.
2576
- #
2577
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:162
2578
- sig { params(locations: T.nilable(T::Array[::Thread::Backtrace::Location])).returns(::String) }
2579
- def resolve_loc(locations); end
2580
-
2581
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:116
2582
- sig { params(method: T.any(::Method, ::UnboundMethod)).returns(T.untyped) }
2583
- def signature_of(method); end
2584
-
2585
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:55
2586
- sig { params(constant: ::Module).returns(::Class) }
2587
- def singleton_class_of(constant); end
2588
-
2589
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:65
2590
- sig { params(constant: ::Class).returns(T.nilable(::Class)) }
2591
- def superclass_of(constant); end
2592
- end
2593
-
2594
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:14
2595
- Tapioca::Runtime::Reflection::ANCESTORS_METHOD = T.let(T.unsafe(nil), UnboundMethod)
2596
-
2597
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:10
2598
- Tapioca::Runtime::Reflection::CLASS_METHOD = T.let(T.unsafe(nil), UnboundMethod)
2599
-
2600
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:11
2601
- Tapioca::Runtime::Reflection::CONSTANTS_METHOD = T.let(T.unsafe(nil), UnboundMethod)
2602
-
2603
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:17
2604
- Tapioca::Runtime::Reflection::EQUAL_METHOD = T.let(T.unsafe(nil), UnboundMethod)
2605
-
2606
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:21
2607
- Tapioca::Runtime::Reflection::METHOD_METHOD = T.let(T.unsafe(nil), UnboundMethod)
2608
-
2609
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:12
2610
- Tapioca::Runtime::Reflection::NAME_METHOD = T.let(T.unsafe(nil), UnboundMethod)
2611
-
2612
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:16
2613
- Tapioca::Runtime::Reflection::OBJECT_ID_METHOD = T.let(T.unsafe(nil), UnboundMethod)
2614
-
2615
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:20
2616
- Tapioca::Runtime::Reflection::PRIVATE_INSTANCE_METHODS_METHOD = T.let(T.unsafe(nil), UnboundMethod)
2617
-
2618
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:19
2619
- Tapioca::Runtime::Reflection::PROTECTED_INSTANCE_METHODS_METHOD = T.let(T.unsafe(nil), UnboundMethod)
2620
-
2621
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:18
2622
- Tapioca::Runtime::Reflection::PUBLIC_INSTANCE_METHODS_METHOD = T.let(T.unsafe(nil), UnboundMethod)
2623
-
2624
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:23
2625
- Tapioca::Runtime::Reflection::REQUIRED_FROM_LABELS = T.let(T.unsafe(nil), Array)
2626
-
2627
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:13
2628
- Tapioca::Runtime::Reflection::SINGLETON_CLASS_METHOD = T.let(T.unsafe(nil), UnboundMethod)
2629
-
2630
- # source://tapioca-0.9.4/lib/tapioca/runtime/reflection.rb:15
2631
- Tapioca::Runtime::Reflection::SUPERCLASS_METHOD = T.let(T.unsafe(nil), UnboundMethod)
2632
-
2633
- # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/autoload.rb:6
2634
- module Tapioca::Runtime::Trackers; end
2635
-
2636
- # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/autoload.rb:7
2637
- module Tapioca::Runtime::Trackers::Autoload
2638
- class << self
2639
- # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/autoload.rb:18
2640
- sig { void }
2641
- def eager_load_all!; end
2642
-
2643
- # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/autoload.rb:30
2644
- sig { params(constant_name: ::String).void }
2645
- def register(constant_name); end
2646
-
2647
- # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/autoload.rb:39
2648
- sig do
2649
- type_parameters(:Result)
2650
- .params(
2651
- block: T.proc.returns(T.type_parameter(:Result))
2652
- ).returns(T.type_parameter(:Result))
2653
- end
2654
- def with_disabled_exits(&block); end
2655
- end
2656
- end
2657
-
2658
- # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/autoload.rb:10
2659
- Tapioca::Runtime::Trackers::Autoload::NOOP_METHOD = T.let(T.unsafe(nil), Proc)
2660
-
2661
- # Registers a TracePoint immediately upon load to track points at which
2662
- # classes and modules are opened for definition. This is used to track
2663
- # correspondence between classes/modules and files, as this information isn't
2664
- # available in the ruby runtime without extra accounting.
2665
- module Tapioca::Runtime::Trackers::ConstantDefinition
2666
- extend ::Tapioca::Runtime::Reflection
2667
-
2668
- class << self
2669
- # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/constant_definition.rb:52
2670
- def build_constant_location(tp, locations); end
2671
-
2672
- # Returns the files in which this class or module was opened. Doesn't know
2673
- # about situations where the class was opened prior to +require+ing,
2674
- # or where metaprogramming was used via +eval+, etc.
2675
- #
2676
- # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/constant_definition.rb:62
2677
- def files_for(klass); end
2678
-
2679
- # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/constant_definition.rb:66
2680
- def locations_for(klass); end
2681
- end
2682
- end
2683
-
2684
- module Tapioca::Runtime::Trackers::Mixin
2685
- class << self
2686
- # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/mixin.rb:52
2687
- sig do
2688
- params(
2689
- mixin: ::Module
2690
- ).returns(T::Hash[::Tapioca::Runtime::Trackers::Mixin::Type, T::Hash[::Module, ::String]])
2691
- end
2692
- def constants_with_mixin(mixin); end
2693
-
2694
- # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/mixin.rb:42
2695
- sig { params(constant: ::Module, mixin: ::Module, mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type).void }
2696
- def register(constant, mixin, mixin_type); end
2697
-
2698
- # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/mixin.rb:27
2699
- sig do
2700
- type_parameters(:Result)
2701
- .params(
2702
- block: T.proc.returns(T.type_parameter(:Result))
2703
- ).returns(T.type_parameter(:Result))
2704
- end
2705
- def with_disabled_registration(&block); end
2706
- end
2707
- end
2708
-
2709
- class Tapioca::Runtime::Trackers::Mixin::Type < ::T::Enum
2710
- enums do
2711
- Prepend = new
2712
- Include = new
2713
- Extend = new
2714
- end
2715
- end
2716
-
2717
- # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/required_ancestor.rb:7
2718
- module Tapioca::Runtime::Trackers::RequiredAncestor
2719
- class << self
2720
- # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/required_ancestor.rb:13
2721
- sig { params(requiring: ::T::Helpers, block: T.proc.returns(::Module)).void }
2722
- def register(requiring, block); end
2723
-
2724
- # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/required_ancestor.rb:19
2725
- sig { params(mod: ::Module).returns(T::Array[T.proc.returns(::Module)]) }
2726
- def required_ancestors_blocks_by(mod); end
2727
-
2728
- # source://tapioca-0.9.4/lib/tapioca/runtime/trackers/required_ancestor.rb:24
2729
- sig { params(mod: ::Module).returns(T::Array[T.nilable(::Module)]) }
2730
- def required_ancestors_by(mod); end
2731
- end
2732
- end
2733
-
2734
- # source://tapioca-0.9.4/lib/tapioca.rb:39
2735
- Tapioca::SORBET_CONFIG_FILE = T.let(T.unsafe(nil), String)
2736
-
2737
- # source://tapioca-0.9.4/lib/tapioca.rb:38
2738
- Tapioca::SORBET_DIR = T.let(T.unsafe(nil), String)
2739
-
2740
- # source://tapioca-0.9.4/lib/tapioca/helpers/sorbet_helper.rb:5
2741
- module Tapioca::SorbetHelper
2742
- # source://tapioca-0.9.4/lib/tapioca/helpers/sorbet_helper.rb:29
2743
- sig { params(sorbet_args: ::String).returns(::Spoom::ExecResult) }
2744
- def sorbet(*sorbet_args); end
2745
-
2746
- # source://tapioca-0.9.4/lib/tapioca/helpers/sorbet_helper.rb:34
2747
- sig { returns(::String) }
2748
- def sorbet_path; end
2749
-
2750
- # source://tapioca-0.9.4/lib/tapioca/helpers/sorbet_helper.rb:41
2751
- sig { params(feature: ::Symbol, version: T.nilable(::Gem::Version)).returns(T::Boolean) }
2752
- def sorbet_supports?(feature, version: T.unsafe(nil)); end
2753
- end
2754
-
2755
- # source://tapioca-0.9.4/lib/tapioca/helpers/sorbet_helper.rb:22
2756
- Tapioca::SorbetHelper::FEATURE_REQUIREMENTS = T.let(T.unsafe(nil), Hash)
2757
-
2758
- # source://tapioca-0.9.4/lib/tapioca/helpers/sorbet_helper.rb:13
2759
- Tapioca::SorbetHelper::SORBET_BIN = T.let(T.unsafe(nil), Pathname)
2760
-
2761
- # source://tapioca-0.9.4/lib/tapioca/helpers/sorbet_helper.rb:18
2762
- Tapioca::SorbetHelper::SORBET_EXE_PATH_ENV_VAR = T.let(T.unsafe(nil), String)
2763
-
2764
- # source://tapioca-0.9.4/lib/tapioca/helpers/sorbet_helper.rb:8
2765
- Tapioca::SorbetHelper::SORBET_GEM_SPEC = T.let(T.unsafe(nil), Gem::Specification)
2766
-
2767
- # source://tapioca-0.9.4/lib/tapioca/helpers/sorbet_helper.rb:20
2768
- Tapioca::SorbetHelper::SORBET_PAYLOAD_URL = T.let(T.unsafe(nil), String)
2769
-
2770
- # source://tapioca-0.9.4/lib/tapioca/static/symbol_table_parser.rb:5
2771
- module Tapioca::Static; end
2772
-
2773
- # source://tapioca-0.9.4/lib/tapioca/static/requires_compiler.rb:6
2774
- class Tapioca::Static::RequiresCompiler
2775
- # source://tapioca-0.9.4/lib/tapioca/static/requires_compiler.rb:10
2776
- sig { params(sorbet_path: ::String).void }
2777
- def initialize(sorbet_path); end
2778
-
2779
- # source://tapioca-0.9.4/lib/tapioca/static/requires_compiler.rb:15
2780
- sig { returns(::String) }
2781
- def compile; end
2782
-
2783
- private
2784
-
2785
- # source://tapioca-0.9.4/lib/tapioca/static/requires_compiler.rb:29
2786
- sig { params(config: ::Spoom::Sorbet::Config).returns(T::Array[::String]) }
2787
- def collect_files(config); end
2788
-
2789
- # source://tapioca-0.9.4/lib/tapioca/static/requires_compiler.rb:44
2790
- sig { params(file_path: ::String).returns(T::Enumerable[::String]) }
2791
- def collect_requires(file_path); end
2792
-
2793
- # source://tapioca-0.9.4/lib/tapioca/static/requires_compiler.rb:52
2794
- sig { params(config: ::Spoom::Sorbet::Config, file_path: ::Pathname).returns(T::Boolean) }
2795
- def file_ignored_by_sorbet?(config, file_path); end
2796
-
2797
- # source://tapioca-0.9.4/lib/tapioca/static/requires_compiler.rb:81
2798
- sig { params(path: ::Pathname).returns(T::Array[::String]) }
2799
- def path_parts(path); end
2800
- end
2801
-
2802
- # source://tapioca-0.9.4/lib/tapioca/static/symbol_loader.rb:6
2803
- module Tapioca::Static::SymbolLoader
2804
- extend ::Tapioca::SorbetHelper
2805
- extend ::Tapioca::Runtime::Reflection
2806
-
2807
- class << self
2808
- # source://tapioca-0.9.4/lib/tapioca/static/symbol_loader.rb:23
2809
- sig { params(gem: ::Tapioca::Gemfile::GemSpec).returns(T::Set[::String]) }
2810
- def engine_symbols(gem); end
2811
-
2812
- # source://tapioca-0.9.4/lib/tapioca/static/symbol_loader.rb:40
2813
- sig { params(gem: ::Tapioca::Gemfile::GemSpec).returns(T::Set[::String]) }
2814
- def gem_symbols(gem); end
2815
-
2816
- # source://tapioca-0.9.4/lib/tapioca/static/symbol_loader.rb:13
2817
- sig { returns(T::Set[::String]) }
2818
- def payload_symbols; end
2819
-
2820
- private
2821
-
2822
- # @return [Array<T.class_of(Rails::Engine)>]
2823
- #
2824
- # source://sorbet-runtime-0.5.10346/lib/types/private/methods/_methods.rb:250
2825
- def engines(*args, **_arg1, &blk); end
2826
-
2827
- # source://tapioca-0.9.4/lib/tapioca/static/symbol_loader.rb:59
2828
- sig { params(input: ::String, table_type: ::String).returns(::String) }
2829
- def symbol_table_json_from(input, table_type: T.unsafe(nil)); end
2830
-
2831
- # source://tapioca-0.9.4/lib/tapioca/static/symbol_loader.rb:64
2832
- sig { params(paths: T::Array[::Pathname]).returns(T::Set[::String]) }
2833
- def symbols_from_paths(paths); end
2834
- end
2835
- end
2836
-
2837
- # source://tapioca-0.9.4/lib/tapioca/static/symbol_table_parser.rb:6
2838
- class Tapioca::Static::SymbolTableParser
2839
- # source://tapioca-0.9.4/lib/tapioca/static/symbol_table_parser.rb:24
2840
- sig { void }
2841
- def initialize; end
2842
-
2843
- # source://tapioca-0.9.4/lib/tapioca/static/symbol_table_parser.rb:57
2844
- sig { params(name: ::String).returns(::String) }
2845
- def fully_qualified_name(name); end
2846
-
2847
- # source://tapioca-0.9.4/lib/tapioca/static/symbol_table_parser.rb:30
2848
- sig { params(object: T::Hash[::String, T.untyped]).void }
2849
- def parse_object(object); end
2850
-
2851
- # source://tapioca-0.9.4/lib/tapioca/static/symbol_table_parser.rb:21
2852
- sig { returns(T::Set[::String]) }
2853
- def symbols; end
2854
-
2855
- class << self
2856
- # source://tapioca-0.9.4/lib/tapioca/static/symbol_table_parser.rb:10
2857
- sig { params(json_string: ::String).returns(T::Set[::String]) }
2858
- def parse_json(json_string); end
2859
- end
2860
- end
2861
-
2862
- # source://tapioca-0.9.4/lib/tapioca.rb:41
2863
- Tapioca::TAPIOCA_CONFIG_FILE = T.let(T.unsafe(nil), String)
2864
-
2865
- # source://tapioca-0.9.4/lib/tapioca.rb:40
2866
- Tapioca::TAPIOCA_DIR = T.let(T.unsafe(nil), String)
2867
-
2868
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:98
2869
- class Tapioca::TypeVariable < ::T::Types::TypeVariable
2870
- # @return [TypeVariable] a new instance of TypeVariable
2871
- #
2872
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:99
2873
- def initialize(name, variance); end
2874
-
2875
- # Returns the value of attribute name.
2876
- #
2877
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:104
2878
- def name; end
2879
- end
2880
-
2881
- # This is subclassing from `Module` so that instances of this type will be modules.
2882
- # The reason why we want that is because that means those instances will automatically
2883
- # get bound to the constant names they are assigned to by Ruby. As a result, we don't
2884
- # need to do any matching of constants to type variables to bind their names, Ruby will
2885
- # do that automatically for us and we get the `name` method for free from `Module`.
2886
- #
2887
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:112
2888
- class Tapioca::TypeVariableModule < ::Module
2889
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:134
2890
- sig do
2891
- params(
2892
- context: ::Module,
2893
- type: ::Tapioca::TypeVariableModule::Type,
2894
- variance: ::Symbol,
2895
- fixed: T.untyped,
2896
- lower: T.untyped,
2897
- upper: T.untyped,
2898
- bounds_proc: T.nilable(T.proc.returns(T::Hash[::Symbol, T.untyped]))
2899
- ).void
2900
- end
2901
- def initialize(context, type, variance, fixed, lower, upper, bounds_proc); end
2902
-
2903
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:184
2904
- sig { returns(::Tapioca::TypeVariable) }
2905
- def coerce_to_type_variable; end
2906
-
2907
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:149
2908
- sig { returns(T.nilable(::String)) }
2909
- def name; end
2910
-
2911
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:168
2912
- sig { returns(::String) }
2913
- def serialize; end
2914
-
2915
- private
2916
-
2917
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:194
2918
- sig do
2919
- params(
2920
- fixed: T.untyped,
2921
- lower: T.untyped,
2922
- upper: T.untyped
2923
- ).returns(T.proc.returns(T::Hash[::Symbol, T.untyped]))
2924
- end
2925
- def build_bounds_proc(fixed, lower, upper); end
2926
-
2927
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:208
2928
- sig do
2929
- type_parameters(:Result)
2930
- .params(
2931
- block: T.proc.returns(T.type_parameter(:Result))
2932
- ).returns(T.type_parameter(:Result))
2933
- end
2934
- def with_bound_name_pre_3_0(&block); end
2935
- end
2936
-
2937
- # source://tapioca-0.9.4/lib/tapioca/sorbet_ext/generic_name_patch.rb:115
2938
- class Tapioca::TypeVariableModule::Type < ::T::Enum
2939
- enums do
2940
- Member = new
2941
- Template = new
2942
- end
2943
- end
2944
-
2945
- # source://tapioca-0.9.4/lib/tapioca/version.rb:5
2946
- Tapioca::VERSION = T.let(T.unsafe(nil), String)