Skip to content

class Crystal::TypeNode
inherits Crystal::ASTNode

Fictitious node to represent a type

Class methods

.all_subclasses(type)

View source

.ancestors(type)

View source

.class_vars(type)

View source

.constant(type, name)

View source

.constants(type)

View source

.has_constant?(type, name)

View source

.has_method?(type, name)

View source

.includers(type)

View source

.instance_vars(type)

View source

.methods(type)

View source

.overrides?(type, target, method)

View source

.subclasses(type)

View source

.superclass(type)

View source

.type_vars(type)

View source

.union_types(type_node)

View source

.new(type : Type)

View source

Methods

#==(other : self)

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

#clone_without_location

View source

#hash(hasher)

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

View source

#to_macro_id

View source