class Crystal::Macros::TypeDef

Overview

A typedef inside a lib.

Every typedef node is equivalent to:

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

Defined in:

compiler/crystal/macros.cr

Instance Method Summary

Instance Method Detail

def name : Path #

Returns the name of the typedef.


[View source]
def type : ASTNode #

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


[View source]