-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[CodeCompletion] Annotated result type name #31637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CodeCompletion] Annotated result type name #31637
Conversation
@swift-ci Please smoke test |
2696d9a
to
14b7890
Compare
Introduced 'TypeAnnotationBegin' chunk kind for grouping the result type name chunks. rdar://problem/62617558
14b7890
to
7086ffb
Compare
@swift-ci Please test |
@@ -1236,6 +1236,7 @@ void SwiftLangSupport::codeCompleteOpen( | |||
typeContextKind = completionCtx.typeContextKind; | |||
mayUseImplicitMemberExpr = completionCtx.MayUseImplicitMemberExpr; | |||
consumer.setReusingASTContext(completionCtx.ReusingASTContext); | |||
consumer.setAnnotatedTypename(completionCtx.getAnnnoateResult()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo getAnnnoateResult
@@ -3990,7 +4074,7 @@ class CompletionLookup final : public swift::VisibleDeclConsumer { | |||
builder.setLiteralKind(kind); | |||
|
|||
consumer(builder); | |||
addTypeRelationFromProtocol(builder, kind, defaultTypeName); | |||
addTypeRelationFromProtocol(builder, kind); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
defaultTypeName
is now unused, so you can remove it from the lambda and the callsites. This applies to both the addFromProto
lambdas in this patch.
@swift-ci Please smoke test |
Introduced 'TypeAnnotationBegin' chunk kind for grouping the result type name chunks.
rdar://problem/62617558