@@ -2642,7 +2642,7 @@ class CompletionLookup final : public swift::VisibleDeclConsumer {
2642
2642
genericSig, includeDefaultArgs);
2643
2643
}
2644
2644
2645
- static void addAsyncThrows (CodeCompletionResultBuilder &Builder,
2645
+ static void addEffectsSpecifiers (CodeCompletionResultBuilder &Builder,
2646
2646
const AnyFunctionType *AFT,
2647
2647
const AbstractFunctionDecl *AFD) {
2648
2648
assert (AFT != nullptr );
@@ -2809,7 +2809,7 @@ class CompletionLookup final : public swift::VisibleDeclConsumer {
2809
2809
else
2810
2810
Builder.addAnnotatedRightParen ();
2811
2811
2812
- addAsyncThrows (Builder, AFT, AFD);
2812
+ addEffectsSpecifiers (Builder, AFT, AFD);
2813
2813
2814
2814
if (AFD &&
2815
2815
AFD->isImplicitlyUnwrappedOptional ())
@@ -2956,14 +2956,14 @@ class CompletionLookup final : public swift::VisibleDeclConsumer {
2956
2956
Builder.addRightParen ();
2957
2957
} else if (trivialTrailingClosure) {
2958
2958
Builder.addBraceStmtWithCursor (" { code }" );
2959
- addAsyncThrows (Builder, AFT, FD);
2959
+ addEffectsSpecifiers (Builder, AFT, FD);
2960
2960
} else {
2961
2961
Builder.addLeftParen ();
2962
2962
addCallArgumentPatterns (Builder, AFT, FD->getParameters (),
2963
2963
FD->getGenericSignatureOfContext (),
2964
2964
includeDefaultArgs);
2965
2965
Builder.addRightParen ();
2966
- addAsyncThrows (Builder, AFT, FD);
2966
+ addEffectsSpecifiers (Builder, AFT, FD);
2967
2967
}
2968
2968
2969
2969
// Build type annotation.
@@ -3104,7 +3104,7 @@ class CompletionLookup final : public swift::VisibleDeclConsumer {
3104
3104
else
3105
3105
Builder.addAnnotatedRightParen ();
3106
3106
3107
- addAsyncThrows (Builder, ConstructorType, CD);
3107
+ addEffectsSpecifiers (Builder, ConstructorType, CD);
3108
3108
3109
3109
if (!Result.hasValue ())
3110
3110
Result = ConstructorType->getResult ();
0 commit comments