class YARP::DefNode
^^^^^^^^^^
end
def method
Represents a method definition.
def accept(visitor)
def accept(visitor) visitor.visit_def_node(self) end
def child_nodes
def child_nodes [receiver, parameters, statements] end
def deconstruct_keys(keys)
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 def_keyword_loc.slice end
def end_keyword
def end_keyword end_keyword_loc&.slice end
def equal
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, 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 lparen_loc&.slice end
def name
def name name_loc.slice end
def operator
def operator operator_loc&.slice end
def rparen
def rparen rparen_loc&.slice end