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() {
6081
6081
6082
6082
switch (Kind) {
6083
6083
case CompletionKind::None:
6084
+ case CompletionKind::DotExpr:
6084
6085
llvm_unreachable (" should be already handled" );
6085
6086
return ;
6086
6087
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
-
6105
6088
case CompletionKind::KeyPathExprSwift: {
6106
6089
auto KPE = dyn_cast<KeyPathExpr>(ParsedExpr);
6107
6090
auto BGT = (*ExprType)->getAs <BoundGenericType>();
You can’t perform that action at this time.
0 commit comments