@@ -2116,9 +2116,8 @@ class CompletionLookup final : public swift::VisibleDeclConsumer {
2116
2116
if (NeedComma)
2117
2117
Builder.addComma ();
2118
2118
2119
- Builder.addCallParameter (argName, bodyName, paramTy, isVariadic,
2120
- /* TopLevel*/ true , isInOut, isIUO,
2121
- isAutoclosure);
2119
+ Builder.addCallParameter (argName, bodyName, paramTy, isVariadic, isInOut,
2120
+ isIUO, isAutoclosure);
2122
2121
2123
2122
modifiedBuilder = true ;
2124
2123
NeedComma = true ;
@@ -3235,9 +3234,8 @@ class CompletionLookup final : public swift::VisibleDeclConsumer {
3235
3234
builder.addWhitespace (" " );
3236
3235
assert (RHSType && resultType);
3237
3236
builder.addCallParameter (Identifier (), Identifier (), RHSType,
3238
- /* IsVarArg*/ false , /* TopLevel*/ true ,
3239
- /* IsInOut*/ false , /* isIUO*/ false ,
3240
- /* isAutoClosure*/ false );
3237
+ /* IsVarArg*/ false , /* IsInOut*/ false ,
3238
+ /* isIUO*/ false , /* isAutoClosure*/ false );
3241
3239
addTypeAnnotation (builder, resultType);
3242
3240
}
3243
3241
@@ -3259,9 +3257,9 @@ class CompletionLookup final : public swift::VisibleDeclConsumer {
3259
3257
builder.addTextChunk (op->getName ().str ());
3260
3258
builder.addWhitespace (" " );
3261
3259
if (RHSType)
3262
- builder.addCallParameter (Identifier (), Identifier (), RHSType, false , true ,
3263
- /* IsInOut */ false , /* isIUO */ false ,
3264
- /* isAutoClosure*/ false );
3260
+ builder.addCallParameter (Identifier (), Identifier (), RHSType,
3261
+ /* IsVarArg */ false , /* IsInOut */ false ,
3262
+ /* isIUO */ false , /* isAutoClosure*/ false );
3265
3263
if (resultType)
3266
3264
addTypeAnnotation (builder, resultType);
3267
3265
}
@@ -3446,21 +3444,21 @@ class CompletionLookup final : public swift::VisibleDeclConsumer {
3446
3444
addFromProto (LK::ColorLiteral, " " , [&](Builder &builder) {
3447
3445
builder.addTextChunk (" #colorLiteral" );
3448
3446
builder.addLeftParen ();
3449
- builder.addCallParameter (context.getIdentifier (" red" ), floatType, false ,
3450
- true , /* IsInOut*/ false ,
3447
+ builder.addCallParameter (context.getIdentifier (" red" ), floatType,
3448
+ /* IsVarArg */ false , /* IsInOut*/ false ,
3451
3449
/* isIUO*/ false , /* isAutoClosure*/ false );
3452
3450
builder.addComma ();
3453
- builder.addCallParameter (context.getIdentifier (" green" ), floatType, false ,
3454
- true , /* IsInOut */ false , /* isIUO */ false ,
3455
- /* isAutoClosure*/ false );
3451
+ builder.addCallParameter (context.getIdentifier (" green" ), floatType,
3452
+ /* IsVarArg */ false , /* IsInOut */ false ,
3453
+ /* isIUO */ false , /* isAutoClosure*/ false );
3456
3454
builder.addComma ();
3457
- builder.addCallParameter (context.getIdentifier (" blue" ), floatType, false ,
3458
- true , /* IsInOut */ false , /* isIUO */ false ,
3459
- /* isAutoClosure*/ false );
3455
+ builder.addCallParameter (context.getIdentifier (" blue" ), floatType,
3456
+ /* IsVarArg */ false , /* IsInOut */ false ,
3457
+ /* isIUO */ false , /* isAutoClosure*/ false );
3460
3458
builder.addComma ();
3461
- builder.addCallParameter (context.getIdentifier (" alpha" ), floatType, false ,
3462
- true , /* IsInOut */ false , /* isIUO */ false ,
3463
- /* isAutoClosure*/ false );
3459
+ builder.addCallParameter (context.getIdentifier (" alpha" ), floatType,
3460
+ /* IsVarArg */ false , /* IsInOut */ false ,
3461
+ /* isIUO */ false , /* isAutoClosure*/ false );
3464
3462
builder.addRightParen ();
3465
3463
});
3466
3464
@@ -3469,8 +3467,9 @@ class CompletionLookup final : public swift::VisibleDeclConsumer {
3469
3467
builder.addTextChunk (" #imageLiteral" );
3470
3468
builder.addLeftParen ();
3471
3469
builder.addCallParameter (context.getIdentifier (" resourceName" ),
3472
- stringType, false , true , /* IsInOut*/ false ,
3473
- /* isIUO*/ false , /* isAutoClosure*/ false );
3470
+ stringType, /* IsVarArg*/ false ,
3471
+ /* IsInOut*/ false , /* isIUO*/ false ,
3472
+ /* isAutoClosure*/ false );
3474
3473
builder.addRightParen ();
3475
3474
});
3476
3475
0 commit comments