class Prism::ArgumentsNode
^^^^^^^^^^^^^
return foo, bar, baz
Represents a set of arguments to a method or a keyword.
def self.type
def self.type :arguments_node end
def ===(other)
Implements case-equality for the node. This is effectively == but without
def ===(other) other.is_a?(ArgumentsNode) && (flags === other.flags) && (arguments.length == other.arguments.length) && arguments.zip(other.arguments).all? { |left, right| left === right } end
def accept(visitor)
def accept(visitor) visitor.visit_arguments_node(self) end
def child_nodes
def child_nodes [*arguments] end
def comment_targets
def comment_targets [*arguments] #: Array[Prism::node | Location] end
def compact_child_nodes
def compact_child_nodes [*arguments] end
def contains_forwarding?
def contains_forwarding? flags.anybits?(ArgumentsNodeFlags::CONTAINS_FORWARDING) end
def contains_keyword_splat?
def contains_keyword_splat? flags.anybits?(ArgumentsNodeFlags::CONTAINS_KEYWORD_SPLAT) end
def contains_keywords?
def contains_keywords? flags.anybits?(ArgumentsNodeFlags::CONTAINS_KEYWORDS) end
def contains_multiple_splats?
def contains_multiple_splats? flags.anybits?(ArgumentsNodeFlags::CONTAINS_MULTIPLE_SPLATS) end
def contains_splat?
def contains_splat? flags.anybits?(ArgumentsNodeFlags::CONTAINS_SPLAT) end
def copy(node_id: self.node_id, location: self.location, flags: self.flags, arguments: self.arguments)
def copy(node_id: self.node_id, location: self.location, flags: self.flags, arguments: self.arguments) ArgumentsNode.new(source, node_id, location, flags, arguments) end
def deconstruct_keys(keys)
def deconstruct_keys(keys) { node_id: node_id, location: location, arguments: arguments } end
def initialize(source, node_id, location, flags, arguments)
def initialize(source, node_id, location, flags, arguments) @source = source @node_id = node_id @location = location @flags = flags @arguments = arguments end
def inspect
def inspect InspectVisitor.compose(self) end
def type
def type :arguments_node end