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.
- Expression with its id.
- Named argument in a function call.
Enums§
Functions§
- Computes the semantic model of an expression of type ast::ExprBlock.
- Computes the semantic model of an expression. Note that this expr will always be “registered” in the arena, so it can be looked up in the language server.
- Computes the semantic model of an expression of type ast::Arg.
- Computes the semantic model of a pattern. Note that this pattern will always be “registered” in the arena, so it can be looked up in the language server.
- Computes the semantic model of a statement (excluding tail-expression).
- Returns the requested variable from the environment if it exists. Returns None otherwise.
- Returns the requested item from the environment if it exists. Returns None otherwise.
- Computes the semantic model of an expression, or returns a SemanticDiagnosticKind on error.
- Resolves a variable given a context and a simple name.