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 : ASTNodeSource

Returns the type part of the declaration.

def value : ASTNode | NopSource

The value assigned to the variable, if any.

def var : MacroIdSource

Returns the variable part of the declaration.

© 2012–2021 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/1.2.1/Crystal/Macros/TypeDeclaration.html