lib/rbs/environment.rb in rbs-1.0.0.pre vs lib/rbs/environment.rb in rbs-1.0.0.pre2

- old
+ new

@@ -131,11 +131,11 @@ end end def cache_name(cache, name:, decl:, outer:) if cache.key?(name) - raise DuplicatedDeclarationError.new(name, decl, cache[name].decl) + raise DuplicatedDeclarationError.new(_ = name, _ = decl, _ = cache[name].decl) end cache[name] = SingleEntry.new(name: name, decl: decl, outer: outer) end @@ -193,13 +193,10 @@ cache_name constant_decls, name: name, decl: decl, outer: outer when AST::Declarations::Global cache_name global_decls, name: decl.name, decl: decl, outer: outer - - when AST::Declarations::Extension - RBS.logger.warn "#{Location.to_string decl.location} Extension construct is deprecated: use class/module syntax instead" end end def <<(decl) declarations << decl @@ -324,12 +321,9 @@ name: decl.name.with_prefix(prefix), type: absolute_type(resolver, decl.type, context: context), location: decl.location, comment: decl.comment ) - - else - raise end end def resolve_member(resolver, member, context:) case member