File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed
Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff 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>();
You can’t perform that action at this time.
0 commit comments