lib/rbs/environment.rb in rbs-2.1.0 vs lib/rbs/environment.rb in rbs-2.2.0

- old
+ new

@@ -355,40 +355,44 @@ resolve_method_type(resolver, type, context: context) end, comment: member.comment, overload: member.overload?, annotations: member.annotations, - location: member.location + location: member.location, + visibility: member.visibility ) when AST::Members::AttrAccessor AST::Members::AttrAccessor.new( name: member.name, type: absolute_type(resolver, member.type, context: context), kind: member.kind, annotations: member.annotations, comment: member.comment, location: member.location, - ivar_name: member.ivar_name + ivar_name: member.ivar_name, + visibility: member.visibility ) when AST::Members::AttrReader AST::Members::AttrReader.new( name: member.name, type: absolute_type(resolver, member.type, context: context), kind: member.kind, annotations: member.annotations, comment: member.comment, location: member.location, - ivar_name: member.ivar_name + ivar_name: member.ivar_name, + visibility: member.visibility ) when AST::Members::AttrWriter AST::Members::AttrWriter.new( name: member.name, type: absolute_type(resolver, member.type, context: context), kind: member.kind, annotations: member.annotations, comment: member.comment, location: member.location, - ivar_name: member.ivar_name + ivar_name: member.ivar_name, + visibility: member.visibility ) when AST::Members::InstanceVariable AST::Members::InstanceVariable.new( name: member.name, type: absolute_type(resolver, member.type, context: context),