class YARP::PinnedExpressionNode
^^^^^^
foo in ^(bar)
pattern matching expression.
Represents the use of the ‘^` operator for pinning an expression in a
def accept(visitor)
def accept(visitor) visitor.visit_pinned_expression_node(self) end
def child_nodes
def child_nodes [expression] end
def deconstruct_keys(keys)
def deconstruct_keys(keys) { expression: expression, operator_loc: operator_loc, lparen_loc: lparen_loc, rparen_loc: rparen_loc, location: location } end
def initialize(expression, operator_loc, lparen_loc, rparen_loc, location)
def initialize(expression, operator_loc, lparen_loc, rparen_loc, location) @expression = expression @operator_loc = operator_loc @lparen_loc = lparen_loc @rparen_loc = rparen_loc @location = location end
def lparen
def lparen lparen_loc.slice end
def operator
def operator operator_loc.slice end
def rparen
def rparen rparen_loc.slice end