Skip to content

class Crystal::Var
inherits Crystal::ASTNode

A local variable or block argument.

Included modules

Crystal::SpecialVar

Direct known subclasses

Crystal::MetaTypeVar

Class methods

.new(name : String, type : Type)

View source

.new(name : String)

View source

Methods

#==(other : self)

Returns true if this reference is the same as other. Invokes same?.

View source

#clone_without_location

View source

#hash(hasher)

View source

#name=(name : String)

View source

#name_size

View source

#to_macro_id : String

View source