class SyntaxTree::LabelEnd
used by the label.
hash key. This node is important for determining the type of quote being
In the example above, LabelEnd represents the “":” token at the end of the
{ “key”: value }
LabelEnd represents the end of a dynamic symbol.
def ===(other)
def ===(other) other.is_a?(LabelEnd) && value === other.value end
def accept(visitor)
def accept(visitor) visitor.visit_label_end(self) end
def child_nodes
def child_nodes [] end
def copy(value: nil, location: nil)
def copy(value: nil, location: nil) LabelEnd.new( value: value || self.value, location: location || self.location ) end
def deconstruct_keys(_keys)
def deconstruct_keys(_keys) { value: value, location: location } end
def initialize(value:, location:)
def initialize(value:, location:) @value = value @location = location end