class RBS::NoSelfTypeFoundError

属性

location[R]
type_name[R]

公共类方法

check!(self_type, env:) 点击切换源代码
# File rbs-3.8.0/lib/rbs/errors.rb, line 223
def self.check!(self_type, env:)
  self_name = env.normalize_type_name(self_type.name)
  (env.module_name?(self_name) || env.interface_name?(self_name)) or raise new(type_name: self_type.name, location: self_type.location)
end
new(type_name:, location:) 点击切换源代码
调用父类方法
# File rbs-3.8.0/lib/rbs/errors.rb, line 216
def initialize(type_name:, location:)
  @type_name = type_name
  @location = location

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