Code completion: don't show internal SIL attributes in types of weak and

unowned variables

rdar://16849171


Swift SVN r18357
This commit is contained in:
Dmitri Hrybenko
2014-05-18 21:50:13 +00:00
parent 2f9c8f3744
commit fc9d546d2e
2 changed files with 54 additions and 0 deletions

View File

@@ -1050,6 +1050,7 @@ public:
}
void addTypeAnnotation(CodeCompletionResultBuilder &Builder, Type T) {
T = T->getReferenceStorageReferent();
if (T->isVoid())
Builder.addTypeAnnotation("Void");
else