class YARP::ForNode

^^^^^^^^^^^^^^
for i in a end
Represents the use of the ‘for` keyword.

def accept(visitor)

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

def child_nodes

def child_nodes: () -> Array[nil | Node]
def child_nodes
  [index, collection, statements]
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)
  { index: index, collection: collection, statements: statements, for_keyword_loc: for_keyword_loc, in_keyword_loc: in_keyword_loc, do_keyword_loc: do_keyword_loc, end_keyword_loc: end_keyword_loc, location: location }
end

def do_keyword

def do_keyword: () -> String?
def do_keyword
  do_keyword_loc&.slice
end

def end_keyword

def end_keyword: () -> String
def end_keyword
  end_keyword_loc.slice
end

def for_keyword

def for_keyword: () -> String
def for_keyword
  for_keyword_loc.slice
end

def in_keyword

def in_keyword: () -> String
def in_keyword
  in_keyword_loc.slice
end

def initialize(index, collection, statements, for_keyword_loc, in_keyword_loc, do_keyword_loc, end_keyword_loc, location)

def initialize: (index: Node, collection: Node, statements: Node?, for_keyword_loc: Location, in_keyword_loc: Location, do_keyword_loc: Location?, end_keyword_loc: Location, location: Location) -> void
def initialize(index, collection, statements, for_keyword_loc, in_keyword_loc, do_keyword_loc, end_keyword_loc, location)
  @index = index
  @collection = collection
  @statements = statements
  @for_keyword_loc = for_keyword_loc
  @in_keyword_loc = in_keyword_loc
  @do_keyword_loc = do_keyword_loc
  @end_keyword_loc = end_keyword_loc
  @location = location
end