module RuboCop::AST::MethodDispatchNode

def safe_navigation?

Returns:
  • (Boolean) - whether the method was called with a connecting dot
def safe_navigation?
  loc.respond_to?(:dot) && loc.dot && loc.dot.is?('&.')
end