Skip to content

Commit ee660c6

Browse files
author
Nathan Hawes
committed
[CodeCompletion] Remove old DotExpr completion handling code - it's unreachable now.
1 parent e2d3c6d commit ee660c6

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

lib/IDE/CodeCompletion.cpp

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6081,27 +6081,10 @@ void CodeCompletionCallbacksImpl::doneParsing() {
60816081

60826082
switch (Kind) {
60836083
case CompletionKind::None:
6084+
case CompletionKind::DotExpr:
60846085
llvm_unreachable("should be already handled");
60856086
return;
60866087

6087-
case CompletionKind::DotExpr: {
6088-
Lookup.setHaveDot(DotLoc);
6089-
6090-
if (isDynamicLookup(*ExprType))
6091-
Lookup.setIsDynamicLookup();
6092-
6093-
Lookup.getPostfixKeywordCompletions(*ExprType, ParsedExpr);
6094-
6095-
if (isa<BindOptionalExpr>(ParsedExpr) || isa<ForceValueExpr>(ParsedExpr))
6096-
Lookup.setIsUnwrappedOptional(true);
6097-
6098-
ExprContextInfo ContextInfo(CurDeclContext, ParsedExpr);
6099-
Lookup.setExpectedTypes(ContextInfo.getPossibleTypes(),
6100-
ContextInfo.isSingleExpressionBody());
6101-
Lookup.getValueExprCompletions(*ExprType, ReferencedDecl.getDecl());
6102-
break;
6103-
}
6104-
61056088
case CompletionKind::KeyPathExprSwift: {
61066089
auto KPE = dyn_cast<KeyPathExpr>(ParsedExpr);
61076090
auto BGT = (*ExprType)->getAs<BoundGenericType>();

0 commit comments

Comments
 (0)