class YARP::OrWriteNode
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/yarp/node.rbs class YARP::OrWriteNode < YARP::Node def accept: (Analyzer::Visitor visitor) -> Array[Array, NilClass] def child_nodes: () -> (Array[YARP::LocalVariableWriteNode] | Array[YARP::InstanceVariableWriteNode]) type YARP__OrWriteNode_initialize_value = YARP::CallNode | YARP::BeginNode | YARP::HashNode | YARP::ConstantReadNode def initialize: ((YARP::InstanceVariableWriteNode | YARP::LocalVariableWriteNode) target, YARP__OrWriteNode_initialize_value value, YARP::Location operator_loc, YARP::Location location) -> void end
^^^^^^^^^^^^^^^^
target ||= value
Represents the use of the ‘||=` operator.
def accept(visitor)
Experimental RBS support (using type sampling data from the type_fusion
project).
type YARP__OrWriteNode_accept_return_value = Array | Array | NilClass | Array | Array | Array | Array | NilClass | NilClass | NilClass | Array | Array | Array | | NilClass | NilClass | NilClass | NilClass | Array | Array | Array | Array | | Array | | NilClass | NilClass | NilClass | NilClass | Array | Array | | Array | Array | Array | NilClass | NilClass | NilClass | Array | def accept: (Analyzer::Visitor visitor) -> YARP__OrWriteNode_accept_return_value
This signature was generated using 10 samples from 1 application.
def accept(visitor) visitor.visit_or_write_node(self) end
def child_nodes
Experimental RBS support (using type sampling data from the type_fusion
project).
def child_nodes: () -> (YARP::CallNode | YARP::ConstantPathNode)
This signature was generated using 12 samples from 1 application.
def child_nodes [target, value] end
def deconstruct_keys(keys)
def deconstruct_keys(keys) { target: target, value: value, operator_loc: operator_loc, location: location } end
def initialize(target, value, operator_loc, location)
Experimental RBS support (using type sampling data from the type_fusion
project).
type YARP__OrWriteNode_initialize_value = YARP::CallNode | YARP::BeginNode | YARP::HashNode | YARP::ConstantReadNode def initialize: ((YARP::InstanceVariableWriteNode | YARP::LocalVariableWriteNode) target, YARP__OrWriteNode_initialize_value value, YARP::Location operator_loc, YARP::Location location) -> void
This signature was generated using 9 samples from 1 application.
def initialize(target, value, operator_loc, location) @target = target @value = value @operator_loc = operator_loc @location = location end
def operator
def operator operator_loc.slice end