lib/rubocop/rbs/cop_base.rb in rubocop-on-rbs-1.2.0 vs lib/rubocop/rbs/cop_base.rb in rubocop-on-rbs-1.3.0
- old
+ new
@@ -71,10 +71,11 @@
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 on_rbs_var(member); end
def walk(decl)
case decl
when ::RBS::AST::Declarations::Module
on_rbs_module(decl)
@@ -97,9 +98,11 @@
on_rbs_attribute(decl)
when ::RBS::AST::Members::Public
on_rbs_public(decl)
when ::RBS::AST::Members::Private
on_rbs_private(decl)
+ when ::RBS::AST::Members::Var
+ on_rbs_var(decl)
end
end
def rbs_buffer
::RBS::Buffer.new(