class YARP::DefNode

^^^^^^^^^^
end
def method
Represents a method definition.

def accept(visitor)

def accept: (visitor: Visitor) -> void
def accept(visitor)
  visitor.visit_def_node(self)
end

def child_nodes

def child_nodes: () -> Array[nil | Node]
def child_nodes
  [receiver, parameters, statements]
end

def deconstruct_keys(keys)

def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location]
def deconstruct_keys(keys)
  { name_loc: name_loc, receiver: receiver, parameters: parameters, statements: statements, locals: locals, def_keyword_loc: def_keyword_loc, operator_loc: operator_loc, lparen_loc: lparen_loc, rparen_loc: rparen_loc, equal_loc: equal_loc, end_keyword_loc: end_keyword_loc, location: location }
end

def def_keyword

def def_keyword: () -> String
def def_keyword
  def_keyword_loc.slice
end

def end_keyword

def end_keyword: () -> String?
def end_keyword
  end_keyword_loc&.slice
end

def equal

def equal: () -> String?
def equal
  equal_loc&.slice
end

def initialize(name_loc, receiver, parameters, statements, locals, def_keyword_loc, operator_loc, lparen_loc, rparen_loc, equal_loc, end_keyword_loc, location)

def initialize: (name_loc: Location, receiver: Node?, parameters: Node?, statements: Node?, locals: Array[Symbol], def_keyword_loc: Location, operator_loc: Location?, lparen_loc: Location?, rparen_loc: Location?, equal_loc: Location?, end_keyword_loc: Location?, location: Location) -> void
def initialize(name_loc, receiver, parameters, statements, locals, def_keyword_loc, operator_loc, lparen_loc, rparen_loc, equal_loc, end_keyword_loc, location)
  @name_loc = name_loc
  @receiver = receiver
  @parameters = parameters
  @statements = statements
  @locals = locals
  @def_keyword_loc = def_keyword_loc
  @operator_loc = operator_loc
  @lparen_loc = lparen_loc
  @rparen_loc = rparen_loc
  @equal_loc = equal_loc
  @end_keyword_loc = end_keyword_loc
  @location = location
end

def lparen

def lparen: () -> String?
def lparen
  lparen_loc&.slice
end

def name

def name: () -> String
def name
  name_loc.slice
end

def operator

def operator: () -> String?
def operator
  operator_loc&.slice
end

def rparen

def rparen: () -> String?
def rparen
  rparen_loc&.slice
end