class YARP::EmbeddedVariableNode
^^^^^
“foo #@bar”
Represents an interpolated variable.
def accept(visitor)
def accept(visitor) visitor.visit_embedded_variable_node(self) end
def child_nodes
def child_nodes [variable] end
def comment_targets
def comment_targets [operator_loc, variable] end
def copy(**params)
def copy(**params) EmbeddedVariableNode.new( params.fetch(:operator_loc) { operator_loc }, params.fetch(:variable) { variable }, params.fetch(:location) { location }, ) end
def deconstruct_keys(keys)
def deconstruct_keys(keys) { operator_loc: operator_loc, variable: variable, location: location } end
def initialize(operator_loc, variable, location)
def initialize(operator_loc, variable, location) @operator_loc = operator_loc @variable = variable @location = location end
def inspect(inspector = NodeInspector.new)
def inspect(inspector = NodeInspector.new) inspector << inspector.header(self) inspector << "├── operator_loc: #{inspector.location(operator_loc)}\n" inspector << "└── variable:\n" inspector << inspector.child_node(variable, " ") inspector.to_str end
def operator
def operator operator_loc.slice end