class SyntaxTree::ArgsForward
and the callee (the get and post definitions).
The ArgsForward node appears in both the caller (the request method calls)
their arguments (positional, keyword, and block) on to the request method.
In the example above, both the get and post methods are forwarding all of
end
request(:POST, …)
def post(…)
end
request(:GET, …)
def get(…)
def request(method, path, **headers, &block); end
call.
ArgsForward represents forwarding all kinds of arguments onto another method
def ===(other)
def ===(other) other.is_a?(ArgsForward) end
def accept(visitor)
def accept(visitor) visitor.visit_args_forward(self) end
def arity
def arity Float::INFINITY end
def child_nodes
def child_nodes [] end
def copy(location: nil)
def copy(location: nil) node = ArgsForward.new(location: location || self.location) node.comments.concat(comments.map(&:copy)) node end
def deconstruct_keys(_keys)
def deconstruct_keys(_keys) { location: location, comments: comments } end
def format(q)
def format(q) q.text("...") end
def initialize(location:)
def initialize(location:) @location = location @comments = [] end