class YARP::LocalVariableTargetNode
^^^ ^^^
foo, bar = baz
Represents writing to a local variable in a context that doesn’t have an explicit value.
def accept(visitor)
def accept(visitor) visitor.visit_local_variable_target_node(self) end
def child_nodes
def child_nodes [] end
def comment_targets
def comment_targets [] end
def copy(**params)
def copy(**params) LocalVariableTargetNode.new( params.fetch(:name) { name }, params.fetch(:depth) { depth }, params.fetch(:location) { location }, ) end
def deconstruct_keys(keys)
def deconstruct_keys(keys) { name: name, depth: depth, location: location } end
def initialize(name, depth, location)
def initialize(name, depth, location) @name = name @depth = depth @location = location end
def inspect(inspector = NodeInspector.new)
def inspect(inspector = NodeInspector.new) inspector << inspector.header(self) inspector << "├── name: #{name.inspect}\n" inspector << "└── depth: #{depth.inspect}\n" inspector.to_str end