mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SourceKit] Stop using isSystemModule to represent "non-user" modules
Rather than using `ModuleDecl::isSystemModule()` to determine whether a module is not a user module, instead check whether the module was defined adjacent to the compiler or if it's part of the SDK. If no SDK path was given, then `isSystemModule` is still used as a fallback. Resolves rdar://89253201.
This commit is contained in:
@@ -131,7 +131,7 @@ void CodeCompletionStringPrinter::printTypeRef(Type T, const TypeDecl *TD,
|
||||
Identifier Name,
|
||||
PrintNameContext NameContext) {
|
||||
|
||||
NextChunkKind = TD->getModuleContext()->isSystemModule()
|
||||
NextChunkKind = TD->getModuleContext()->isNonUserModule()
|
||||
? ChunkKind::TypeIdSystem
|
||||
: ChunkKind::TypeIdUser;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user