mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-27 15:14:31 +00:00
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:
1 parent
dc5e62fc7a
commit
17e0a1afb9
12 files changed
+347
-22
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user