class YARP::ParametersNode

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

# sig/yarp/node.rbs

class YARP::ParametersNode < YARP::Node
  
  type YARP__ParametersNode_accept_return_value = Array[Array, ] | Array[Array, Array, NilClass, NilClass, NilClass] | Array[Array, Array, , Array, ] | Array[NilClass] | Array[Array, Array, ]
  
  def accept: (Analyzer::Visitor visitor) -> YARP__ParametersNode_accept_return_value
  
  type YARP__ParametersNode_child_nodes_return_value = Array[YARP::RequiredParameterNode] | Array[YARP::RestParameterNode] | Array[NilClass] | Array[YARP::OptionalParameterNode]
  
  def child_nodes: () -> YARP__ParametersNode_child_nodes_return_value
  def initialize: ((Array[YARP::RequiredParameterNode] | Array[]) requireds, (Array[] | Array[YARP::OptionalParameterNode]) optionals, Array[] posts, YARP::RestParameterNode? rest, (Array[YARP::KeywordParameterNode] | Array[]) keywords, YARP::KeywordRestParameterNode? keyword_rest, YARP::BlockParameterNode? block, YARP::Location location) -> void
end

end
^^^^^^^
def a(b, c, d)
Represents the list of parameters on a method, block, or lambda definition.

def accept(visitor)

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

type YARP__ParametersNode_accept_return_value = Array[Array, ] | Array[Array, Array, NilClass, NilClass, NilClass] | Array[Array, Array, , Array, ] | Array[NilClass] | Array[Array, Array, ]
type YARP__ParametersNode_accept_return_value = NilClass | NilClass | NilClass | Array |  | NilClass | NilClass | NilClass | Array |  | Array |  | Array |  | NilClass | NilClass | NilClass | Array |  | Array | Array | NilClass | NilClass | NilClass | NilClass | NilClass | NilClass | Array | Array |  | NilClass | NilClass | NilClass | NilClass | Array |  | Array |  | Array |  | Array | Array | Array |  | Array | Array |  | NilClass | NilClass | NilClass | NilClass | Array |  | Array |  | NilClass | NilClass | NilClass | NilClass | NilClass | Array |  | Array |  | NilClass | NilClass | Array |  | Array |  | Array |  | Array |  | NilClass | NilClass | NilClass | Array |  | Array |  | Array |  | Array |  | Array |  | NilClass | NilClass | NilClass | NilClass | Array |  | NilClass | NilClass | Array | Array |  | Array | Array |  | Array | Array |  | Array | Array |  | Array |  | NilClass | Array | Array |  | Array |  | NilClass | NilClass | NilClass | Array |  | Array | Array |  | NilClass | NilClass | NilClass

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

This signature was generated using 204 samples from 1 application.

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

def child_nodes

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

type YARP__ParametersNode_child_nodes_return_value = Array[YARP::RequiredParameterNode] | Array[YARP::RestParameterNode] | Array[NilClass] | Array[YARP::OptionalParameterNode]
type YARP__ParametersNode_child_nodes_return_value = YARP::RequiredParameterNode | YARP::RequiredParameterNode | NilClass | NilClass | NilClass | NilClass | NilClass | NilClass | NilClass | NilClass | YARP::OptionalParameterNode | NilClass | NilClass | NilClass | NilClass | YARP::BlockParameterNode | YARP::RequiredParameterNode | NilClass | NilClass | NilClass | YARP::RequiredParameterNode | YARP::RequiredParameterNode | YARP::RequiredParameterNode | YARP::RequiredParameterNode | NilClass | NilClass | NilClass | YARP::OptionalParameterNode | YARP::OptionalParameterNode | YARP::OptionalParameterNode | NilClass | NilClass | NilClass | YARP::RestParameterNode | NilClass | NilClass | NilClass | NilClass | YARP::BlockParameterNode | NilClass | YARP::KeywordParameterNode | NilClass | YARP::BlockParameterNode | YARP::KeywordRestParameterNode | NilClass | YARP::RequiredParameterNode | YARP::OptionalParameterNode | NilClass | NilClass | NilClass | YARP::RequiredParameterNode | YARP::RequiredParameterNode | YARP::OptionalParameterNode | NilClass | NilClass | NilClass | YARP::OptionalParameterNode | YARP::OptionalParameterNode | NilClass | NilClass | NilClass | YARP::RequiredParameterNode | YARP::RequiredParameterNode | YARP::RequiredParameterNode | NilClass | NilClass | NilClass | YARP::RequiredDestructuredParameterNode | NilClass | NilClass | NilClass | YARP::RestParameterNode | NilClass | YARP::BlockParameterNode | NilClass | YARP::KeywordRestParameterNode | NilClass

def child_nodes: () -> YARP__ParametersNode_child_nodes_return_value

This signature was generated using 207 samples from 1 application.

def child_nodes: () -> Array[nil | Node]
def child_nodes
  [*requireds, *optionals, *posts, rest, *keywords, keyword_rest, block]
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)
  { requireds: requireds, optionals: optionals, posts: posts, rest: rest, keywords: keywords, keyword_rest: keyword_rest, block: block, location: location }
end

def initialize(requireds, optionals, posts, rest, keywords, keyword_rest, block, location)

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

type YARP__ParametersNode_initialize_requireds = YARP::RequiredParameterNode |  | YARP::RequiredParameterNode | YARP::RequiredParameterNode | YARP::RequiredParameterNode | YARP::RequiredParameterNode | YARP::RequiredParameterNode | YARP::RequiredParameterNode | YARP::RequiredParameterNode | YARP::RequiredParameterNode | YARP::RequiredParameterNode | YARP::RequiredParameterNode | YARP::RequiredParameterNode | YARP::RequiredParameterNode | YARP::RequiredParameterNode | YARP::RequiredParameterNode

def initialize: (YARP__ParametersNode_initialize_requireds requireds, ( | YARP::OptionalParameterNode | YARP::OptionalParameterNode | YARP::OptionalParameterNode) optionals,  posts, YARP::RestParameterNode? rest, ( | YARP::KeywordParameterNode) keywords, YARP::KeywordRestParameterNode? keyword_rest, YARP::BlockParameterNode? block, YARP::Location location) -> void

This signature was generated using 204 samples from 1 application.

def initialize: (requireds: Array[Node], optionals: Array[Node], posts: Array[Node], rest: Node?, keywords: Array[Node], keyword_rest: Node?, block: Node?, location: Location) -> void
def initialize(requireds, optionals, posts, rest, keywords, keyword_rest, block, location)
  @requireds = requireds
  @optionals = optionals
  @posts = posts
  @rest = rest
  @keywords = keywords
  @keyword_rest = keyword_rest
  @block = block
  @location = location
end