class YARP::RescueModifierNode
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/yarp/node.rbs class YARP::RescueModifierNode < YARP::Node def accept: (Analyzer::Visitor visitor) -> (Array[Array, Array, Array, , Array, Array, , NilClass, NilClass, NilClass] | Array[Array, NilClass, Array, Array, , NilClass]) def child_nodes: () -> Array[YARP::CallNode] def initialize: (YARP::CallNode expression, YARP::Location keyword_loc, YARP::NilNode rescue_expression, YARP::Location location) -> void end
^^^^^^^^^^^^^^
foo rescue nil
Represents an expression modified with a rescue.
def accept(visitor)
Experimental RBS support (using type sampling data from the type_fusion
project).
def accept: (Analyzer::Visitor visitor) -> (Array | Array | Array | NilClass | Array | | Array | Array | | NilClass | NilClass | NilClass | Array | )
This signature was generated using 2 samples from 1 application.
def accept(visitor) visitor.visit_rescue_modifier_node(self) end
def child_nodes
Experimental RBS support (using type sampling data from the type_fusion
project).
def child_nodes: () -> YARP::CallNode
This signature was generated using 1 sample from 1 application.
def child_nodes [expression, rescue_expression] end
def deconstruct_keys(keys)
def deconstruct_keys(keys) { expression: expression, keyword_loc: keyword_loc, rescue_expression: rescue_expression, location: location } end
def initialize(expression, keyword_loc, rescue_expression, location)
Experimental RBS support (using type sampling data from the type_fusion
project).
def initialize: (YARP::CallNode expression, YARP::Location keyword_loc, YARP::NilNode rescue_expression, YARP::Location location) -> void
This signature was generated using 1 sample from 1 application.
def initialize(expression, keyword_loc, rescue_expression, location) @expression = expression @keyword_loc = keyword_loc @rescue_expression = rescue_expression @location = location end
def keyword
def keyword keyword_loc.slice end
def set_newline_flag(newline_marked)
def set_newline_flag(newline_marked) expression.set_newline_flag(newline_marked) end