|
@@ -153,16 +153,20 @@ class CheckUnit {
|
|
|
// Imports all other Carbon packages (excluding the current package).
|
|
// Imports all other Carbon packages (excluding the current package).
|
|
|
auto ImportOtherPackages(SemIR::TypeId namespace_type_id) -> void;
|
|
auto ImportOtherPackages(SemIR::TypeId namespace_type_id) -> void;
|
|
|
|
|
|
|
|
|
|
+ // Checks that each required declaration is available. This applies for
|
|
|
|
|
+ // declarations that should exist in an owning library, for which an extern
|
|
|
|
|
+ // declaration exists that assigns ownership to the current API.
|
|
|
|
|
+ auto CheckRequiredDeclarations() -> void;
|
|
|
|
|
+
|
|
|
// Checks that each required definition is available. If the definition can be
|
|
// Checks that each required definition is available. If the definition can be
|
|
|
// generated by resolving a specific, does so, otherwise emits a diagnostic
|
|
// generated by resolving a specific, does so, otherwise emits a diagnostic
|
|
|
// for each declaration in context.definitions_required() that doesn't have a
|
|
// for each declaration in context.definitions_required() that doesn't have a
|
|
|
// definition.
|
|
// definition.
|
|
|
auto CheckRequiredDefinitions() -> void;
|
|
auto CheckRequiredDefinitions() -> void;
|
|
|
|
|
|
|
|
- // Checks that each required declaration is available. This applies for
|
|
|
|
|
- // declarations that should exist in an owning library, for which an extern
|
|
|
|
|
- // declaration exists that assigns ownership to the current API.
|
|
|
|
|
- auto CheckRequiredDeclarations() -> void;
|
|
|
|
|
|
|
+ // Does work after processing the parse tree, such as finishing the IR and
|
|
|
|
|
+ // checking for missing contents.
|
|
|
|
|
+ auto FinishRun() -> void;
|
|
|
|
|
|
|
|
// Loops over all nodes in the tree. On some errors, this may return early,
|
|
// Loops over all nodes in the tree. On some errors, this may return early,
|
|
|
// for example if an unrecoverable state is encountered.
|
|
// for example if an unrecoverable state is encountered.
|