pub struct TypeckContext<'sbc, 'lazy: 'sbc, 'sb: 'lazy, 'ast: 'sb, 'ctx: 'sb> {
    pub ctx: &'sbc ScoreContext<'lazy, 'sb, 'ast, 'ctx>,
    /* private fields */
}
Expand description

A context to typecheck things in.

This context helps checking the types of things and keeping track of errors.

Fields

ctx: &'sbc ScoreContext<'lazy, 'sb, 'ast, 'ctx>

The parent context.

Implementations

Create a new type checking context.

Consume the context and return the result of the typeck.

Emit a diagnostic message.

Check the type of a node.

If the node already had its type checked, immediately returns the result of that operation. Otherwise runs the task scheduled in the lazy table.

Determine the type of a node.

If the node already had its type determined, immediately returns the result of that operation. Otherwise runs the task scheduled in the lazy table.

Ensure that two types are compatible.

Ensure that one type can be cast into the other.

Type check the time expression in a delay mechanism.

Type check a waveform.

Type check a waveform element.

Type check a subprogram specification.

Type check any node that can have its type calculated.

Type check a slice of nodes.

Apply a range constraint to a type.

Apply an array constraint to a type.

Apply a record constraint to a type.

Apply an index constraint to an array index.

Impose a subtype on a type.

Evaluate a discrete range as a type.

Evaluate a range as a type.

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.