Crate petr_bind

Source
Expand description

Binds symbols from the AST into a symbol map from ID to a node representation. The binder’s only job is to create a data structure of all scopes and the symbols that those scopes define. The resolver is then able to do scope-aware name resolution in the next step.

Structs§

Binder
BindingId
The ID type of a variable binding.
Dependency
Describes the AST of a dependency package
FunctionId
The ID type of a function.
ModuleId
The ID type of a module.
Scope
ScopeId
The ID type of a Scope in the Binder.

Enums§

Item
ScopeKind
Not used in the compiler heavily yet, but extremely useful for understanding what kind of scope you are in.

Traits§

Bind