Implement static name resolution (#958)

This doesn't actually use the results of name resolution, but it does verify that they are present.
Also ensures that name resolution and type checking are applied to deduced function parameters and the implicit call to `Main()`.

Co-authored-by: Jon Meow <46229924+jonmeow@users.noreply.github.com>
This commit is contained in:
Geoff RomerandJon Meow authored and GitHub committed 2021-11-30 13:33:54 -08:00
1 parent dc5e62fc7a
commit 17e0a1afb9
12 files changed
+347 -22

No files matched your search

+2
View File
@@ -26,6 +26,8 @@ struct AST {
std::vector<Nonnull<Declaration*>> declarations;
// Names declared at the top level of the file.
StaticScope static_scope;
// Synthesized call to `Main`. Injected after parsing.
std::optional<Nonnull<CallExpression*>> main_call;
};
} // namespace Carbon