class YARP::StatementsNode
Experimental RBS support (using type sampling data from the type_fusion project).
# sig/yarp/node.rbs class YARP::StatementsNode < YARP::Node def accept: (Analyzer::Visitor visitor) -> untyped def child_nodes: () -> untyped type YARP__StatementsNode_initialize_body = Array[YARP::CallNode] | Array[YARP::LocalVariableWriteNode] | Array[YARP::StringNode] | Array[YARP::ArrayNode] | Array[YARP::InterpolatedStringNode] | Array[YARP::IfNode] | Array[YARP::InstanceVariableWriteNode] | Array[YARP::ModuleNode] | Array[YARP::ClassNode] | Array[YARP::DefNode] | Array[YARP::OrNode] | Array[YARP::TrueNode] | Array[YARP::LocalVariableReadNode] def initialize: (YARP__StatementsNode_initialize_body body, YARP::Location location) -> void end
^^^^^^^^^^^^^
foo; bar; baz
Represents a set of statements contained within some scope.
def accept(visitor)
Experimental RBS support (using type sampling data from the type_fusion project).
def accept: (Analyzer::Visitor visitor) -> untyped
This signature was generated using 39 samples from 1 application.
def accept(visitor) visitor.visit_statements_node(self) 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 29 samples from 1 application.
def child_nodes [*body] end
def deconstruct_keys(keys)
def deconstruct_keys(keys) { body: body, location: location } end
def initialize(body, location)
Experimental RBS support (using type sampling data from the type_fusion project).
type YARP__StatementsNode_initialize_body = Array[YARP::CallNode] | Array[YARP::LocalVariableWriteNode] | Array[YARP::StringNode] | Array[YARP::ArrayNode] | Array[YARP::InterpolatedStringNode] | Array[YARP::IfNode] | Array[YARP::InstanceVariableWriteNode] | Array[YARP::ModuleNode] | Array[YARP::ClassNode] | Array[YARP::DefNode] | Array[YARP::OrNode] | Array[YARP::TrueNode] | Array[YARP::LocalVariableReadNode] type YARP__StatementsNode_initialize_body = | YARP::LocalVariableWriteNode | YARP::WhileNode | YARP::GlobalVariableWriteNode | YARP::BeginNode | YARP::CallNode | YARP::CallNode | YARP::DefNode | YARP::DefNode | YARP::DefNode | YARP::AliasNode | YARP::DefNode | YARP::DefNode | YARP::DefNode | YARP::CallNode | YARP::LocalVariableWriteNode | YARP::CallNode | YARP::IfNode | YARP::CallNode | YARP::LocalVariableReadNode | YARP::DefNode | YARP::DefNode | YARP::DefNode | YARP::DefNode | YARP::UnlessNode | YARP::CallNode | YARP::LocalVariableOperatorWriteNode | YARP::CallNode | YARP::LocalVariableWriteNode | YARP::IfNode | YARP::CallNode | YARP::CallNode | YARP::CallNode | YARP::CallNode | YARP::ModuleNode | YARP::CallNode | YARP::CallNode | YARP::CallNode | YARP::ModuleNode | YARP::CallNode | YARP::DefNode | YARP::DefNode | YARP::DefNode | YARP::CallNode | YARP::DefNode | YARP::DefNode | YARP::DefNode def initialize: (YARP__StatementsNode_initialize_body body, YARP::Location location) -> void
This signature was generated using 49 samples from 1 application.
def initialize(body, location) @body = body @location = location end