class YARP::ClassNode
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/yarp/node.rbs class YARP::ClassNode < YARP::Node def accept: (Analyzer::Visitor visitor) -> untyped def child_nodes: () -> untyped type YARP__ClassNode_initialize_superclass = YARP::ConstantReadNode | YARP::ConstantPathNode | nil | YARP::CallNode def initialize: (Array[] locals, YARP::Location class_keyword_loc, YARP::ConstantReadNode constant_path, YARP::Location? inheritance_operator_loc, YARP__ClassNode_initialize_superclass superclass, YARP::StatementsNode? statements, YARP::Location end_keyword_loc, YARP::Location location) -> void end
^^^^^^^^^^^^^
class Foo end
Represents a class declaration involving the ‘class` keyword.
def accept(visitor)
Experimental RBS support (using type sampling data from the type_fusion
project).
def accept: (Analyzer::Visitor visitor) -> untyped
This signature was generated using 12 samples from 1 application.
def accept(visitor) visitor.visit_class_node(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 [constant_path, superclass, statements] end
def class_keyword
def class_keyword class_keyword_loc.slice end
def deconstruct_keys(keys)
def deconstruct_keys(keys) { locals: locals, class_keyword_loc: class_keyword_loc, constant_path: constant_path, inheritance_operator_loc: inheritance_operator_loc, superclass: superclass, statements: statements, end_keyword_loc: end_keyword_loc, location: location } end
def end_keyword
def end_keyword end_keyword_loc.slice end
def inheritance_operator
def inheritance_operator inheritance_operator_loc&.slice end
def initialize(locals, class_keyword_loc, constant_path, inheritance_operator_loc, superclass, statements, end_keyword_loc, location)
Experimental RBS support (using type sampling data from the type_fusion
project).
type YARP__ClassNode_initialize_superclass = YARP::ConstantReadNode | YARP::ConstantPathNode | nil | YARP::CallNode def initialize: ( locals, YARP::Location class_keyword_loc, YARP::ConstantReadNode constant_path, YARP::Location? inheritance_operator_loc, YARP__ClassNode_initialize_superclass superclass, YARP::StatementsNode? statements, YARP::Location end_keyword_loc, YARP::Location location) -> void
This signature was generated using 8 samples from 1 application.
def initialize(locals, class_keyword_loc, constant_path, inheritance_operator_loc, superclass, statements, end_keyword_loc, location) @locals = locals @class_keyword_loc = class_keyword_loc @constant_path = constant_path @inheritance_operator_loc = inheritance_operator_loc @superclass = superclass @statements = statements @end_keyword_loc = end_keyword_loc @location = location end