class YARP::LocalVariableReadNode
^^^
foo
otherwise it is parsed as a method call.
variable of the same name has already been written to in the same scope,
Represents reading a local variable. Note that this requires that a local
def accept(visitor)
def accept(visitor) visitor.visit_local_variable_read_node(self) end
def child_nodes
def child_nodes [] end
def comment_targets
def comment_targets [] end
def copy(**params)
def copy(**params) LocalVariableReadNode.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