class Cruml::Transformer

Overview

Class that consists to inspect the reflected objects.

Defined in:

transformer.cr

Constant 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

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def transform(node : Crystal::ModuleDef) : Crystal::ASTNode #

Transforms a module definition node.


[View source]
def transform(node : Crystal::ClassDef) : Crystal::ASTNode #

Transforms a class definition node.


[View source]
def transform(node : Crystal::VisibilityModifier) : Crystal::ASTNode #

Transforms a visibility modifier node.


[View source]
def transform(node : Crystal::Expressions) : Crystal::ASTNode #

Transforms an expressions node.


[View source]
def transform(node : Crystal::InstanceVar) : Crystal::ASTNode #

Transforms an instance variable node.


[View source]
def transform(node : Crystal::Assign) : Crystal::ASTNode #

Transforms an assignment node.


[View source]
def transform(node : Crystal::TypeDeclaration) : Crystal::ASTNode #

Transforms a type declaration node.


[View source]
def transform(node : Crystal::Def) : Crystal::ASTNode #

Transforms a method definition node.


[View source]