@@ -305,6 +305,7 @@ class CodeCompletionCallbacksImpl : public CodeCompletionCallbacks,
305
305
void completeForEachPatternBeginning (bool hasTry, bool hasAwait) override ;
306
306
void completeTypeAttrBeginning () override ;
307
307
void completeOptionalBinding () override ;
308
+ void completeWithoutConstraintType () override ;
308
309
309
310
void doneParsing (SourceFile *SrcFile) override ;
310
311
@@ -664,6 +665,11 @@ void CodeCompletionCallbacksImpl::completeOptionalBinding() {
664
665
Kind = CompletionKind::OptionalBinding;
665
666
}
666
667
668
+ void CodeCompletionCallbacksImpl::completeWithoutConstraintType () {
669
+ CurDeclContext = P.CurDeclContext ;
670
+ Kind = CompletionKind::WithoutConstraintType;
671
+ }
672
+
667
673
void CodeCompletionCallbacksImpl::completeTypeAttrBeginning () {
668
674
CurDeclContext = P.CurDeclContext ;
669
675
Kind = CompletionKind::TypeAttrBeginning;
@@ -975,6 +981,7 @@ void CodeCompletionCallbacksImpl::addKeywords(CodeCompletionResultSink &Sink,
975
981
case CompletionKind::StmtLabel:
976
982
case CompletionKind::TypeAttrBeginning:
977
983
case CompletionKind::OptionalBinding:
984
+ case CompletionKind::WithoutConstraintType:
978
985
break ;
979
986
980
987
case CompletionKind::EffectsSpecifier:
@@ -2057,6 +2064,11 @@ void CodeCompletionCallbacksImpl::doneParsing(SourceFile *SrcFile) {
2057
2064
break ;
2058
2065
}
2059
2066
2067
+ case CompletionKind::WithoutConstraintType: {
2068
+ Lookup.getWithoutConstraintTypes ();
2069
+ break ;
2070
+ }
2071
+
2060
2072
case CompletionKind::AfterIfStmtElse:
2061
2073
case CompletionKind::CaseStmtKeyword:
2062
2074
case CompletionKind::EffectsSpecifier:
0 commit comments