mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Rename @_predatesConcurrency to @preconcurrency.
Introduce the `@preconcurrency` attribute name for `@_predatesConcurrency`, which has been the favored name in the pitch thread so far. Retain the old name for now to help smooth migration.
This commit is contained in:
@@ -2302,14 +2302,14 @@ SourceFile::setImports(ArrayRef<AttributedImport<ImportedModule>> imports) {
|
||||
Imports = getASTContext().AllocateCopy(imports);
|
||||
}
|
||||
|
||||
bool SourceFile::hasImportUsedPredatesConcurrency(
|
||||
bool SourceFile::hasImportUsedPreconcurrency(
|
||||
AttributedImport<ImportedModule> import) const {
|
||||
return PredatesConcurrencyImportsUsed.count(import) != 0;
|
||||
return PreconcurrencyImportsUsed.count(import) != 0;
|
||||
}
|
||||
|
||||
void SourceFile::setImportUsedPredatesConcurrency(
|
||||
void SourceFile::setImportUsedPreconcurrency(
|
||||
AttributedImport<ImportedModule> import) {
|
||||
PredatesConcurrencyImportsUsed.insert(import);
|
||||
PreconcurrencyImportsUsed.insert(import);
|
||||
}
|
||||
|
||||
bool HasImplementationOnlyImportsRequest::evaluate(Evaluator &evaluator,
|
||||
|
||||
Reference in New Issue
Block a user