Trait kailua_types::ty::TypeResolver [] [src]

pub trait TypeResolver: Report {
    fn context(&self) -> &TypeContext;
fn context_mut(&mut self) -> &mut TypeContext;
fn ty_from_name(&self, name: &Spanned<Name>) -> Result<Ty>;
fn class_system_from_name(
        &self,
        name: &Spanned<Name>
    ) -> Result<Option<ClassSystemId>>; }

A superset of the type context that also provides type name resolution.

This is required for converting a syntax-level type ("kind") to the actual type.

Required Methods

Returns an immutable reference to associated type context.

Returns a mutable reference to associated type context.

Resolves a type name to a type if any. The span is used for error reporting.

Resolves a class system name to an identifier if any. The span is used for error reporting.

Implementors