# File rbs-1.0.4/lib/rbs/errors.rb, line 87 def self.check!(type_name, env,, location)) dic = case when type_name.class? env.class_decls when type_name.alias? env.alias_decls when type_name.interface? env.interface_decls else raise end dic.key?(type_name) or raise new(type_name: type_name, location: location) type_name end