class YARP::OperatorWriteNode
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/yarp/node.rbs class YARP::OperatorWriteNode < YARP::Node def accept: (Analyzer::Visitor visitor) -> Array[Array, NilClass] def child_nodes: () -> Array[YARP::LocalVariableWriteNode] def initialize: ((YARP::LocalVariableWriteNode | YARP::InstanceVariableWriteNode) target, YARP::Location operator_loc, Symbol operator, (YARP::CallNode | YARP::IntegerNode | YARP::ArrayNode) value, YARP::Location location) -> void end
^^^^^^^^^^^^^^^
target += value
Represents the use of an operator on a write.
def accept(visitor)
Experimental RBS support (using type sampling data from the type_fusion
project).
def accept: (Analyzer::Visitor visitor) -> (Array | Array | | Array | )
This signature was generated using 6 samples from 1 application.
def accept(visitor) visitor.visit_operator_write_node(self) end
def child_nodes
Experimental RBS support (using type sampling data from the type_fusion
project).
def child_nodes: () -> (YARP::IntegerNode | YARP::CallNode)
This signature was generated using 5 samples from 1 application.
def child_nodes [target, value] end
def deconstruct_keys(keys)
def deconstruct_keys(keys) { target: target, operator_loc: operator_loc, operator: operator, value: value, location: location } end
def initialize(target, operator_loc, operator, value, location)
Experimental RBS support (using type sampling data from the type_fusion
project).
def initialize: ((YARP::LocalVariableWriteNode | YARP::InstanceVariableWriteNode) target, YARP::Location operator_loc, Symbol operator, (YARP::CallNode | YARP::IntegerNode | YARP::ArrayNode) value, YARP::Location location) -> void
This signature was generated using 5 samples from 1 application.
def initialize(target, operator_loc, operator, value, location) @target = target @operator_loc = operator_loc @operator = operator @value = value @location = location end