@@ -867,25 +867,6 @@ ArrayRef<StringRef> copyAssociatedUSRs(llvm::BumpPtrAllocator &Allocator,
867
867
return ArrayRef<StringRef>();
868
868
}
869
869
870
- // / The expected contextual type(s) for code-completion.
871
- struct ide ::ExpectedTypeContext {
872
- // / Possible types of the code completion expression.
873
- std::vector<Type> possibleTypes;
874
-
875
- // / Whether the `ExpectedTypes` comes from a single-expression body, e.g.
876
- // / `foo({ here })`.
877
- // /
878
- // / Since the input may be incomplete, we take into account that the types are
879
- // / only a hint.
880
- bool isSingleExpressionBody = false ;
881
-
882
- bool empty () const { return possibleTypes.empty (); }
883
-
884
- ExpectedTypeContext () = default ;
885
- ExpectedTypeContext (std::vector<Type> types, bool isSingleExpressionBody)
886
- : possibleTypes(types), isSingleExpressionBody(isSingleExpressionBody) {}
887
- };
888
-
889
870
static CodeCompletionResult::ExpectedTypeRelation calculateTypeRelation (
890
871
Type Ty,
891
872
Type ExpectedTy,
@@ -1289,11 +1270,10 @@ class CodeCompletionCallbacksImpl : public CodeCompletionCallbacks {
1289
1270
if (ST.isNull () || ST->is <ErrorType>())
1290
1271
return ;
1291
1272
1292
- ExpectedTypeContext empty;
1293
1273
CodeCompletionResultBuilder Builder (Sink,
1294
1274
CodeCompletionResult::ResultKind::Keyword,
1295
1275
SemanticContextKind::CurrentNominal,
1296
- empty );
1276
+ {} );
1297
1277
Builder.setKeywordKind (CodeCompletionKeywordKind::kw_super);
1298
1278
Builder.addTextChunk (" super" );
1299
1279
Builder.addTypeAnnotation (ST.getString ());
0 commit comments