lib/rubocop/rbs/cop_base.rb in rubocop-on-rbs-1.0.0 vs lib/rubocop/rbs/cop_base.rb in rubocop-on-rbs-1.1.0

- old
+ new

@@ -69,10 +69,12 @@ def on_rbs_constant(const); end def on_rbs_global(global); end def on_rbs_type_alias(decl); end def on_rbs_def(member); end def on_rbs_attribute(member); end + def on_rbs_public(member); end + def on_rbs_private(member); end def walk(decl) case decl when ::RBS::AST::Declarations::Module on_rbs_module(decl) @@ -91,9 +93,13 @@ on_rbs_type_alias(decl) when ::RBS::AST::Members::MethodDefinition on_rbs_def(decl) when ::RBS::AST::Members::Attribute on_rbs_attribute(decl) + when ::RBS::AST::Members::Public + on_rbs_public(decl) + when ::RBS::AST::Members::Private + on_rbs_private(decl) end end def rbs_buffer ::RBS::Buffer.new(