mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SourceKit] Annotate class method dynamic Self return types
Pass through the original Type in addition to the TypeDecl so that we can distinguish DynamicSelfType with underlying ClassType from just any old ClassType. rdar://problem/25158493
This commit is contained in:
@@ -120,10 +120,10 @@ public:
|
||||
EntitiesStack.back().SubEntities.push_back(std::move(Entity));
|
||||
}
|
||||
|
||||
void printTypeRef(const TypeDecl *TD, Identifier Name) override {
|
||||
void printTypeRef(Type T, const TypeDecl *TD, Identifier Name) override {
|
||||
unsigned StartOffset = OS.tell();
|
||||
References.emplace_back(TD, StartOffset, Name.str().size());
|
||||
StreamPrinter::printTypeRef(TD, Name);
|
||||
StreamPrinter::printTypeRef(T, TD, Name);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user