class RBS::CLI::Validate
def validate_global
def validate_global @env.global_decls.each do |name, global| RBS.logger.info "Validating global: `#{name}`..." @validator.validate_type global.decl.type, context: nil no_self_type_validator(global.decl.type) no_classish_type_validator(global.decl.type) void_type_context_validator(global.decl.type) rescue BaseError => error @errors.add(error) end end