Skip to content

class Crystal::Alias
inherits Crystal::ASTNode

Class methods

.new(name : Path, value : ASTNode)

View source

Methods

#==(other : self)

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

#accept_children(visitor)

View source

#clone_without_location

View source

#doc : String?

Returns the doc comment attached to this node. Not every node supports having doc comments, so by default this returns nil.

View source

#doc=(doc : String?)

View source

#hash(hasher)

#name : Path

View source

#name=(name : Path)

View source

#resolved_type : AliasType

#resolved_type=(resolved_type : AliasType)

View source

#resolved_type? : AliasType?

#value=(value : ASTNode)

View source

#visibility=(visibility)

View source