def definition_for_node(node)
      if node.const? and node.children[0]
        definition = ConstantPath.new(node).resolve(current_scope)
      else
        definition = current_scope.lookup(node.type, node.name)
      end

      definition = Definition::RubyObject.create_unknown unless definition

      return definition
    end
def definition_for_node(node)
      if node.const? and node.children[0]
        definition = ConstantPath.new(node).resolve(current_scope)
      else
        definition = current_scope.lookup(node.type, node.name)
      end

      definition = Definition::RubyObject.create_unknown unless definition

      return definition
    end
Returns the definition for the given node.

 @param [RubyLint::AST::Node] node
 @return [RubyLint::Definition::RubyObject]