Expand description

This module is responsible of computing the semantic model of expressions and statements in the code, while type checking. It is invoked by queries for function bodies and other code blocks.

Structs

Context for computing the semantic model of expression trees.
A state which contains all the variables defined at the current resolver until now, and a pointer to the parent environment.

Functions

Computes the semantic model of an expression of type ast::ExprBlock.
Computes the semantic model of an expression.
Computes the semantic model of an expression of type ast::Arg.
Computes the semantic model of a statement.
Returns the requested variable from the environment if it exists. Returns None otherwise.
Computes the semantic model of an expression, or returns a SemanticDiagnosticKind on error,
Resolves a trait function to an impl function.
Resolves a variable given a context and a simple name.

Type Definitions