mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Macros] Miscellaneous build fixes for macros.
This commit is contained in:
@@ -884,6 +884,7 @@ static void analyzeRenameScope(ValueDecl *VD, Optional<RenameRefInfo> RefInfo,
|
||||
case DeclContextKind::SerializedLocal:
|
||||
case DeclContextKind::Module:
|
||||
case DeclContextKind::FileUnit:
|
||||
case DeclContextKind::MacroDecl:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -1074,6 +1075,7 @@ ExtractCheckResult checkExtractConditions(const ResolvedRangeInfo &RangeInfo,
|
||||
case swift::DeclContextKind::FileUnit:
|
||||
case swift::DeclContextKind::GenericTypeDecl:
|
||||
case swift::DeclContextKind::ExtensionDecl:
|
||||
case swift::DeclContextKind::MacroDecl:
|
||||
return ExtractCheckResult();
|
||||
}
|
||||
return ExtractCheckResult(AllReasons);
|
||||
|
||||
Reference in New Issue
Block a user