mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Move Vending Top-Level Autoclosure discriminators into ASTContext
This bit has historically survived typechecking and parsing across source files. Stick it where we stick the other global state. This also means we don't have to thread TopLevelContext around anymore when invoking high-level typechecking entrypoints.
This commit is contained in:
@@ -277,6 +277,10 @@ public:
|
||||
/// The # of times we have performed typo correction.
|
||||
unsigned NumTypoCorrections = 0;
|
||||
|
||||
/// The next auto-closure discriminator. This needs to be preserved
|
||||
/// across invocations of both the parser and the type-checker.
|
||||
unsigned NextAutoClosureDiscriminator = 0;
|
||||
|
||||
private:
|
||||
/// The current generation number, which reflects the number of
|
||||
/// times that external modules have been loaded.
|
||||
|
||||
Reference in New Issue
Block a user