class RBS::NoMixinFoundError

Attributes

member[R]
type_name[R]

Public Class Methods

check!(type_name, env:, member:) click to toggle source
# File rbs-2.7.0/lib/rbs/errors.rb, line 197
def self.check!(type_name, env:, member:)
  dic = case
        when type_name.class?
          env.class_decls
        when type_name.interface?
          env.interface_decls
        else
          raise
        end

  dic.key?(type_name) or raise new(type_name: type_name, member: member)
end
new(type_name:, member:) click to toggle source
Calls superclass method
# File rbs-2.7.0/lib/rbs/errors.rb, line 186
def initialize(type_name:, member:)
  @type_name = type_name
  @member = member

  super "#{Location.to_string location}: Could not find mixin: #{type_name}"
end

Public Instance Methods

location() click to toggle source
# File rbs-2.7.0/lib/rbs/errors.rb, line 193
def location
  member.location
end