Expand description
The DeclEngine allows the compiler to add a layer of separation between AST nodes and declarations.
As an interface, you can think of the DeclEngine as a mapping from DeclId to DeclWrapper. When a DeclWrapper is inserted into the DeclEngine, a DeclId is generated, which is then used to refer to the declaration.
Modules§
Structs§
- Decl
Engine - Used inside of type inference to store declarations.
- DeclRef
- Represents the use of / syntactic reference to a declaration. A smart-wrapper around a DeclId, containing additional information about a declaration.
- Parsed
Decl Engine - Used inside of type inference to store declarations.
Enums§
Traits§
- Decl
Engine Get - Decl
Engine GetParsed Decl - Decl
Engine GetParsed Decl Id - Decl
Engine Index - Decl
Engine Insert - Decl
Engine Insert Arc - Decl
Engine Replace - Parsed
Decl Engine Get - Parsed
Decl Engine Index - Parsed
Decl Engine Insert - Parsed
Decl Engine Replace