class YARP::BeginNode

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

# sig/yarp/node.rbs

class YARP::BeginNode < YARP::Node
  
  type YARP__BeginNode_accept_return_value = Array[Array, Array, Array, , Array, Array, , Array, Array, NilClass, Array, Array, , NilClass, NilClass, Array, Array, Array, , Array, Array, , NilClass, Array, Array, NilClass, Array, Array, Array, , NilClass, Array, Array, Array, Array, Array, ] | Array[Array, Array, NilClass] | Array[Array, Array, Array, Array, NilClass, Array, Array, , Array, , Array, , Array, Array, , NilClass, NilClass, NilClass] | Array[Array, Array, Array, NilClass, NilClass, NilClass, Array, Array, NilClass, Array, Array, , NilClass, NilClass, Array, NilClass, Array, Array, , NilClass] | Array[Array, Array, Array, NilClass, Array, NilClass, Array, Array, , Array, Array, , Array, Array, Array, , Array, , Array, Array, , Array, , NilClass, Array, Array, Array, , NilClass, NilClass, Array, Array, Array, , Array, Array, Array, , NilClass, NilClass] | Array[Array, Array, NilClass, Array, Array, , NilClass]
  
  def accept: (Analyzer::Visitor visitor) -> YARP__BeginNode_accept_return_value
  def child_nodes: () -> Array[YARP::StatementsNode]
  def initialize: (YARP::Location? begin_keyword_loc, YARP::StatementsNode statements, YARP::RescueNode? rescue_clause, nil else_clause, YARP::EnsureNode? ensure_clause, YARP::Location end_keyword_loc, YARP::Location location) -> void
end

^^^^^
end
foo
begin
Represents a begin statement.

def accept(visitor)

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

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

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

This signature was generated using 10 samples from 1 application.

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

def begin_keyword

def begin_keyword: () -> String?
def begin_keyword
  begin_keyword_loc&.slice
end

def child_nodes

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

def child_nodes: () -> YARP::RescueNode | NilClass | NilClass

This signature was generated using 9 samples from 1 application.

def child_nodes: () -> Array[nil | Node]
def child_nodes
  [statements, rescue_clause, else_clause, ensure_clause]
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)
  { begin_keyword_loc: begin_keyword_loc, statements: statements, rescue_clause: rescue_clause, else_clause: else_clause, ensure_clause: ensure_clause, end_keyword_loc: end_keyword_loc, location: location }
end

def end_keyword

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

def initialize(begin_keyword_loc, statements, rescue_clause, else_clause, ensure_clause, end_keyword_loc, location)

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

def initialize: (YARP::Location? begin_keyword_loc, YARP::StatementsNode statements, YARP::RescueNode? rescue_clause, nil else_clause, YARP::EnsureNode? ensure_clause, YARP::Location end_keyword_loc, YARP::Location location) -> void

This signature was generated using 8 samples from 1 application.

def initialize: (begin_keyword_loc: Location?, statements: Node?, rescue_clause: Node?, else_clause: Node?, ensure_clause: Node?, end_keyword_loc: Location?, location: Location) -> void
def initialize(begin_keyword_loc, statements, rescue_clause, else_clause, ensure_clause, end_keyword_loc, location)
  @begin_keyword_loc = begin_keyword_loc
  @statements = statements
  @rescue_clause = rescue_clause
  @else_clause = else_clause
  @ensure_clause = ensure_clause
  @end_keyword_loc = end_keyword_loc
  @location = location
end

def set_newline_flag(newline_marked)

def set_newline_flag(newline_marked)
  # Never mark BeginNode with a newline flag, mark children instead
end