class Crystal::Macros::Alias

Overview

An alias statement.

Every statement node is equivalent to:

alias {{ node.name }} = {{ node.type }}

Defined in:

compiler/crystal/macros.cr

Instance Method Summary

Instance Method Detail

def name : Path #

Returns the name of the alias.


[View source]
def type : ASTNode #

Returns the name of the type this alias is equivalent to.


[View source]