class SyntaxTree::LBracket

LBracket represents the use of a left bracket, i.e., [.

def self.default

provides a default node.
easier to create LBracket nodes without any specific value, this method
another node. This means it's required at initialization time. To make it
to it if they occur in the source, oftentimes an LBracket is a child of
Because some nodes keep around a [ token so that comments can be attached
def self.default
  new(value: "[", location: Location.default)
end

def ===(other)

def ===(other)
  other.is_a?(LBracket) && value === other.value
end

def accept(visitor)

def accept(visitor)
  visitor.visit_lbracket(self)
end

def child_nodes

def child_nodes
  []
end

def copy(value: nil, location: nil)

def copy(value: nil, location: nil)
  node =
    LBracket.new(
      value: value || self.value,
      location: location || self.location
    )
  node.comments.concat(comments.map(&:copy))
  node
end

def deconstruct_keys(_keys)

def deconstruct_keys(_keys)
  { value: value, location: location, comments: comments }
end

def format(q)

def format(q)
  q.text(value)
end

def initialize(value:, location:)

def initialize(value:, location:)
  @value = value
  @location = location
  @comments = []
end