class YARP::ArgumentsNode

Experimental RBS support (using type sampling data from the type_fusion project).

# sig/yarp/node.rbs

class YARP::ArgumentsNode < YARP::Node
  def accept: (Analyzer::Visitor visitor) -> (Array[Array, ] | Array[Array, Array, ])
  
  type YARP__ArgumentsNode_child_nodes_return_value = Array[YARP::StringNode] | Array[YARP::CallNode] | Array[YARP::IntegerNode] | Array[YARP::LocalVariableReadNode] | Array[YARP::SymbolNode]
  
  def child_nodes: () -> YARP__ArgumentsNode_child_nodes_return_value
  
  type YARP__ArgumentsNode_initialize_arguments = Array[YARP::CallNode] | Array[YARP::LocalVariableReadNode] | Array[YARP::StringNode] | Array[YARP::IntegerNode]
  
  def initialize: (YARP__ArgumentsNode_initialize_arguments arguments, YARP::Location location) -> void
end

^^^^^^^^^^^^^
return foo, bar, baz
Represents a set of arguments to a method or a keyword.

def accept(visitor)

Experimental RBS support (using type sampling data from the type_fusion project).

def accept: (Analyzer::Visitor visitor) ->

This signature was generated using 7 samples from 1 application.

def accept: (visitor: Visitor) -> void
def accept(visitor)
  visitor.visit_arguments_node(self)
end

def child_nodes

Experimental RBS support (using type sampling data from the type_fusion project).

type YARP__ArgumentsNode_child_nodes_return_value = Array[YARP::StringNode] | Array[YARP::CallNode] | Array[YARP::IntegerNode] | Array[YARP::LocalVariableReadNode] | Array[YARP::SymbolNode]
type YARP__ArgumentsNode_child_nodes_return_value = YARP::CallNode | YARP::InterpolatedStringNode |  | YARP::StringNode | YARP::StringNode | YARP::CallNode

def child_nodes: () -> YARP__ArgumentsNode_child_nodes_return_value

This signature was generated using 10 samples from 1 application.

def child_nodes: () -> Array[nil | Node]
def child_nodes
  [*arguments]
end

def comment_targets

def comment_targets: () -> Array[Node | Location]
def comment_targets
  [*arguments]
end

def copy(**params)

def copy: (**params) -> ArgumentsNode
def copy(**params)
  ArgumentsNode.new(
    params.fetch(:arguments) { arguments },
    params.fetch(:location) { location },
  )
end

def deconstruct_keys(keys)

def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location]
def deconstruct_keys(keys)
  { arguments: arguments, location: location }
end

def initialize(arguments, location)

Experimental RBS support (using type sampling data from the type_fusion project).

type YARP__ArgumentsNode_initialize_arguments = Array[YARP::CallNode] | Array[YARP::LocalVariableReadNode] | Array[YARP::StringNode] | Array[YARP::IntegerNode]

def initialize: (( | YARP::ParenthesesNode) arguments, YARP::Location location) -> void

This signature was generated using 6 samples from 1 application.

def initialize: (arguments: Array[Node], location: Location) -> void
def initialize(arguments, location)
  @arguments = arguments
  @location = location
end

def inspect(inspector = NodeInspector.new)

def inspect(inspector = NodeInspector.new)
  inspector << inspector.header(self)
  inspector << "└── arguments: #{inspector.list("#{inspector.prefix}    ", arguments)}"
  inspector.to_str
end