Skip to content

class Crystal::VirtualMetaclassType
inherits Crystal::Type

Included modules

Crystal::ClassVarContainer Crystal::DefInstanceContainer Crystal::MultiType Crystal::VirtualTypeLookup

Class methods

.new(program, instance_type)

View source

Methods

#base_type(*args, **options)

Given Foo+.class returns Foo (not Foo.class)

View source

#base_type

Given Foo+.class returns Foo (not Foo.class)

View source

#common_ancestor(other : MetaclassType | VirtualMetaclassType)

View source

#cover

View source

#cover(*args, **options)

View source

#cover_size

View source

#cover_size(*args, **options)

View source

#each_concrete_type

View source

#implements?(other : VirtualMetaclassType)

View source

#instance_type : VirtualType

View source

#leaf?

Returns true if this type has no subclasses.

View source

#lookup_class_var?(name)

View source

#lookup_first_def

View source

#lookup_first_def(*args, **options)

View source

#lookup_path(*args, **options)

View source

#lookup_path

View source

#lookup_similar_path(*args, **options)

View source

#lookup_similar_path

View source

#metaclass

Returns this type's metaclass, which holds class methods for this type.

View source

#parents

View source

#restrict(other : Metaclass, context)

View source

#to_s_with_options(io : IO, skip_union_parens : Bool = false, generic_args : Bool = true, codegen : Bool = false) : Nil

View source

#virtual_lookup(type)

View source