class
Cruml::Transformer
- Cruml::Transformer
- Crystal::Transformer
- Reference
- Object
Overview
Class that consists to inspect the reflected objects.
Defined in:
transformer.crConstant Summary
-
CLASS_VARS_ATTRIBUTE_REGEX =
/(class_getter|class_property|class_setter)\((\w+) : (\w+)\)/
-
INCLUDE_REGEX =
/^include (\w+(?:::\w+)*)$/
-
INSTANCE_VARS_ATTTRIBUTE_REGEX =
/^(property|getter|setter|property\?|getter\?)\((\w+) : ([\w:| ]+)\)/
-
INSTANCE_VARS_REGEX =
/^@(\w+) : ([\w:| ]+)$/
Constructors
Instance Method Summary
-
#transform(node : Crystal::ModuleDef) : Crystal::ASTNode
Transforms a module definition node.
-
#transform(node : Crystal::ClassDef) : Crystal::ASTNode
Transforms a class definition node.
-
#transform(node : Crystal::VisibilityModifier) : Crystal::ASTNode
Transforms a visibility modifier node.
-
#transform(node : Crystal::Expressions) : Crystal::ASTNode
Transforms an expressions node.
-
#transform(node : Crystal::InstanceVar) : Crystal::ASTNode
Transforms an instance variable node.
-
#transform(node : Crystal::Assign) : Crystal::ASTNode
Transforms an assignment node.
-
#transform(node : Crystal::TypeDeclaration) : Crystal::ASTNode
Transforms a type declaration node.
-
#transform(node : Crystal::Def) : Crystal::ASTNode
Transforms a method definition node.
Constructor Detail
Instance Method Detail
def transform(node : Crystal::VisibilityModifier) : Crystal::ASTNode
#
Transforms a visibility modifier node.
def transform(node : Crystal::InstanceVar) : Crystal::ASTNode
#
Transforms an instance variable node.
def transform(node : Crystal::TypeDeclaration) : Crystal::ASTNode
#
Transforms a type declaration node.