Skip to content

Commit 4af0ca9

Browse files
committed
Qualify Spoom::RBS constants
1 parent 764ddb8 commit 4af0ca9

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

lib/spoom/sorbet/metrics/code_metrics_visitor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def collect_code_metrics(files)
3232
# On the other hand, the metrics file is a snapshot of the metrics at type checking time and knows about
3333
# is calls are typed, how many assertions are done, etc.
3434
class CodeMetricsVisitor < Spoom::Visitor
35-
include RBS::ExtractRBSComments
35+
include Spoom::RBS::ExtractRBSComments
3636

3737
#: (Spoom::Counters) -> void
3838
def initialize(counters)

lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs/base_translator.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def visit_attr(node)
128128
end
129129
end
130130

131-
#: (Prism::DefNode, RBS::Comments) -> void
131+
#: (Prism::DefNode, Spoom::RBS::Comments) -> void
132132
def rewrite_def(def_node, comments)
133133
return if comments.empty?
134134
return if comments.signatures.empty?
@@ -176,15 +176,15 @@ def rewrite_def(def_node, comments)
176176
end
177177
end
178178

179-
#: (Array[RBS::Signature], method_name: String, location: String) -> Array[RBS::Signature]
179+
#: (Array[Spoom::RBS::Signature], method_name: String, location: String) -> Array[Spoom::RBS::Signature]
180180
def apply_overloads_strategy(signatures, method_name:, location:)
181181
return signatures if signatures.size <= 1
182182

183183
case @overloads_strategy
184184
when :translate_all
185185
signatures
186186
when :translate_last
187-
kept = signatures.last #: as RBS::Signature
187+
kept = signatures.last #: as Spoom::RBS::Signature
188188
others = signatures[0...-1] #: as !nil
189189

190190
# Delete all the signatures we didn't keep
@@ -300,7 +300,7 @@ def apply_class_annotations(node)
300300
end
301301
end
302302

303-
#: (Array[RBS::Annotation], RBI::Sig) -> void
303+
#: (Array[Spoom::RBS::Annotation], RBI::Sig) -> void
304304
def apply_member_annotations(annotations, sig)
305305
annotations.each do |annotation|
306306
case annotation.string
@@ -340,9 +340,9 @@ def already_extends?(node, constant_regex)
340340
end
341341
end
342342

343-
#: (Array[Prism::Comment]) -> Array[RBS::TypeAlias]
343+
#: (Array[Prism::Comment]) -> Array[Spoom::RBS::TypeAlias]
344344
def collect_type_aliases(comments)
345-
type_aliases = [] #: Array[RBS::TypeAlias]
345+
type_aliases = [] #: Array[Spoom::RBS::TypeAlias]
346346

347347
return type_aliases if comments.empty?
348348

0 commit comments

Comments
 (0)