mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[ModuleInterfaces] Escape Type and Protocol when module-qualifying
If we see `MyModule.Type`, the parser thinks this is a metatype type. Escape the name `Type` so the parser can recognize it's a type name. Fixes [SR-11422](https://bugs.swift.org/browse/SR-11422) rdar://55094784
This commit is contained in:
@@ -74,8 +74,9 @@ private:
|
||||
void printTypePost(const TypeLoc &TL) override {
|
||||
return OtherPrinter.printTypePost(TL);
|
||||
}
|
||||
void printTypeRef(Type T, const TypeDecl *TD, Identifier Name) override {
|
||||
return OtherPrinter.printTypeRef(T, TD, Name);
|
||||
void printTypeRef(Type T, const TypeDecl *TD, Identifier Name,
|
||||
PrintNameContext NameContext) override {
|
||||
return OtherPrinter.printTypeRef(T, TD, Name, NameContext);
|
||||
}
|
||||
void printModuleRef(ModuleEntity Mod, Identifier Name) override {
|
||||
return OtherPrinter.printModuleRef(Mod, Name);
|
||||
|
||||
Reference in New Issue
Block a user