module
Cruml::Parsers::ClassParser
Overview
Parses class-specific information from Crystal AST
Included Modules
Extended Modules
Defined in:
parsers/class_parser.crInstance Method Summary
-
#determine_class_type(class_name : String, node : Crystal::ClassDef) : Symbol
Determines the class type (interface, abstract, or normal class)
-
#extract_generics(node : Crystal::ClassDef) : String | Nil
Extracts generic type parameters from a class definition
-
#interface?(name : String) : Bool
Determines if a class name represents an interface
-
#parse_extends(body_string : String) : Array(String)
Parses extend statements from the class body
-
#parse_includes(body_string : String) : Array(String)
Parses include statements from the class body
Instance Method Detail
def determine_class_type(class_name : String, node : Crystal::ClassDef) : Symbol
#
Determines the class type (interface, abstract, or normal class)
def extract_generics(node : Crystal::ClassDef) : String | Nil
#
Extracts generic type parameters from a class definition
def parse_extends(body_string : String) : Array(String)
#
Parses extend statements from the class body
def parse_includes(body_string : String) : Array(String)
#
Parses include statements from the class body