Cruml::Transformer
Inherits Cruml::Parsers::RegexPatterns < Crystal::Transformer < Reference < Object
Transformer that uses the Crystal AST for extracting the information about:
- Classes (normal, abstract, interfaces)
- Modules
- Methods (with visibility modifiers)
- Instance variables
- Class variables
- Inheritance relationships
- Module inclusions
Constructors
new(registry : Cruml::Services::RegistryService)
SourceInstance methods
registry
Sourcetransform(node : Crystal::VisibilityModifier) : Crystal::ASTNode
Transforms a visibility modifier node (protected/private methods)
transform(node : Crystal::InstanceVar) : Crystal::ASTNode
Transforms an instance variable node
transform(node : Crystal::TypeDeclaration) : Crystal::ASTNode
Transforms a type declaration node