class RBS::InheritModuleError
属性
super_decl[R]
公共类方法
check!(super_decl, env:) 点击切换源代码
# File rbs-3.8.0/lib/rbs/errors.rb, line 202 def self.check!(super_decl, env:) super_name = env.normalize_type_name(super_decl.name) return if env.class_decl?(super_name) || env.class_alias?(super_name) raise new(super_decl) end
new(super_decl) 点击切换源代码
调用父类方法
# File rbs-3.8.0/lib/rbs/errors.rb, line 192 def initialize(super_decl) @super_decl = super_decl super "#{Location.to_string(super_decl.location)}: Cannot inherit a module: #{super_decl.name}" end
公共实例方法
location() 点击切换源代码
# File rbs-3.8.0/lib/rbs/errors.rb, line 198 def location @super_decl.location end