class YARP::BeginNode
^^^^^
end
foo
begin
Represents a begin statement.
def accept(visitor)
def accept(visitor) visitor.visit_begin_node(self) end
def begin_keyword
def begin_keyword begin_keyword_loc&.slice end
def child_nodes
def child_nodes [statements, rescue_clause, else_clause, ensure_clause] end
def deconstruct_keys(keys)
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 end_keyword_loc&.slice end
def initialize(begin_keyword_loc, statements, rescue_clause, else_clause, ensure_clause, end_keyword_loc, location)
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