Skip to content

class Crystal::MetaMacroVar
inherits Crystal::ASTNode

Fictitious node representing a variable in macros

Class methods

.new(name, type)

View source

Methods

#class_desc

View source

#clone_without_location

View source

#default_value : ASTNode?

View source

#default_value=(default_value : ASTNode?)

View source

#interpret(method : String, args : Array(ASTNode), named_args : Hash(String, ASTNode)?, block : Crystal::Block?, interpreter : Crystal::MacroInterpreter, name_loc : Location?)

View source

#name=(name : String)

View source

#to_macro_id : String

View source

#var : MetaTypeVar

The instance variable associated with this meta macro var

#var=(var : MetaTypeVar)

The instance variable associated with this meta macro var

View source

#var? : MetaTypeVar?

The instance variable associated with this meta macro var