class Crystal::Macros::TypeDeclaration

Overview

A type declaration like x : Int32

Defined in:

compiler/crystal/macros.cr

Instance Method Summary

Instance Method Detail

def type : ASTNode #

Returns the type part of the declaration.


[View source]
def value : ASTNode | Nop #

The value assigned to the variable, if any.


[View source]
def var : MacroId #

Returns the variable part of the declaration.


[View source]