class YARP::FindPatternNode

^^^^^^^^^^^^^^^^^^^^^^^^^^^
foo in Foo(*bar, baz, *qux)
^^^^^^^^^^^^^^^^^^^^^^^^
foo in [*bar, baz, *qux]
^^^^^^^^^^^^^^^^^^^^^^
foo in *bar, baz, *qux
Represents a find pattern in pattern matching.

def accept(visitor)

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

def child_nodes

def child_nodes: () -> Array[nil | Node]
def child_nodes
  [constant, left, *requireds, right]
end

def closing

def closing: () -> String?
def closing
  closing_loc&.slice
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)
  { constant: constant, left: left, requireds: requireds, right: right, opening_loc: opening_loc, closing_loc: closing_loc, location: location }
end

def initialize(constant, left, requireds, right, opening_loc, closing_loc, location)

def initialize: (constant: Node?, left: Node, requireds: Array[Node], right: Node, opening_loc: Location?, closing_loc: Location?, location: Location) -> void
def initialize(constant, left, requireds, right, opening_loc, closing_loc, location)
  @constant = constant
  @left = left
  @requireds = requireds
  @right = right
  @opening_loc = opening_loc
  @closing_loc = closing_loc
  @location = location
end

def opening

def opening: () -> String?
def opening
  opening_loc&.slice
end