class SyntaxTree::LBrace

Experimental RBS support (using type sampling data from the type_fusion project).

# sig/syntax_tree/node.rbs

class SyntaxTree::LBrace < SyntaxTree::Node
  def accept: (Visitor visitor) -> untyped
  def child_nodes: () -> untyped
  def initialize: (value: String, location: SyntaxTree::Location) -> void
end

LBrace represents the use of a left brace, i.e., {.

def self.default

provides a default node.
easier to create LBrace 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 LBrace 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?(LBrace) && value === other.value
end

def accept(visitor)

Experimental RBS support (using type sampling data from the type_fusion project).

def accept: (Visitor visitor) -> untyped

This signature was generated using 2 samples from 1 application.

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

def child_nodes

Experimental RBS support (using type sampling data from the type_fusion project).

def child_nodes: () -> untyped

This signature was generated using 1 sample from 1 application.

def child_nodes
  []
end

def copy(value: nil, location: nil)

def copy(value: nil, location: nil)
  node =
    LBrace.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:)

Experimental RBS support (using type sampling data from the type_fusion project).

def initialize: (value: String, location: SyntaxTree::Location) -> void

This signature was generated using 1 sample from 1 application.

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