class YARP::BeginNode
Experimental RBS support (using type sampling data from the type_fusion project).
# sig/yarp/node.rbs class YARP::BeginNode < YARP::Node def child_nodes: () -> untyped def initialize: (YARP::Location? begin_keyword_loc, YARP::StatementsNode statements, YARP::RescueNode rescue_clause, nil else_clause, nil ensure_clause, YARP::Location end_keyword_loc, YARP::Location location) -> void end
^^^^^
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
Experimental RBS support (using type sampling data from the type_fusion project).
def child_nodes: () -> untyped
This signature was generated using 3 samples from 1 application.
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)
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, nil ensure_clause, YARP::Location end_keyword_loc, YARP::Location location) -> void
This signature was generated using 4 samples from 1 application.
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