class

Crystal::Macros::Metaclass

Inherits Crystal::Macros::ASTNode

A metaclass in a type expression: T.class

Instance methods

instance

Returns the node representing the instance type of this metaclass.

Source
resolve

Resolves this metaclass to a TypeNode if it denotes a type, or otherwise gives a compile-time error.

Source
resolve?

Resolves this metaclass to a TypeNode if it denotes a type, or otherwise returns a NilLiteral.

Source