module Cruml::Parsers::ClassParser

Overview

Parses class-specific information from Crystal AST

Included Modules

Extended Modules

Defined in:

parsers/class_parser.cr

Instance Method Summary

Instance Method Detail

def determine_class_type(class_name : String, node : Crystal::ClassDef) : Symbol #

Determines the class type (interface, abstract, or normal class)


[View source]
def extract_generics(node : Crystal::ClassDef) : String | Nil #

Extracts generic type parameters from a class definition


[View source]
def interface?(name : String) : Bool #

Determines if a class name represents an interface


[View source]
def parse_extends(body_string : String) : Array(String) #

Parses extend statements from the class body


[View source]
def parse_includes(body_string : String) : Array(String) #

Parses include statements from the class body


[View source]