You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: node.rb
    path of file: ./repos/jets/lib/jets/router/route
    
    the code of the file until where you have to start completion: class Jets::Router::Route
  # The Node class groups logic that 
    
    def resolved_as
      as = scope.as || scope.resource_name
      # as = scope.as || scope.resource_name
      if scope.resource_name
        controller = nil # dont need controller. can infer from resources, namespace, etc
      else # direct route method without scope or module only etc
        controller = @info.controller.split('/').last if leaf? #&& as.nil?
      end
      [as, controller].compact.join('_')
    end