File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -425,6 +425,9 @@ bool Decl::isPrivateStdlibDecl(bool whitelistProtocols) const {
425
425
for (auto param : *params) {
426
426
if (param->hasName () && param->getNameStr ().startswith (" _" ))
427
427
return true ;
428
+ auto argName = param->getArgumentName ();
429
+ if (!argName.empty () && argName.str ().startswith (" _" ))
430
+ return true ;
428
431
}
429
432
return false ;
430
433
};
Original file line number Diff line number Diff line change @@ -243,11 +243,11 @@ public struct ${Self}
243
243
% if self_ty. is_word:
244
244
@_transparent
245
245
public // @testable
246
- init ( _ v : Builtin . Word) {
246
+ init ( _ _v : Builtin . Word) {
247
247
% if BuiltinName == 'Int32 ':
248
- self . _value = Builtin . truncOrBitCast_Word_Int32 ( v )
248
+ self . _value = Builtin . truncOrBitCast_Word_Int32 ( _v )
249
249
% elif BuiltinName == 'Int64 ':
250
- self . _value = Builtin . zextOrBitCast_Word_Int64 ( v )
250
+ self . _value = Builtin . zextOrBitCast_Word_Int64 ( _v )
251
251
% end
252
252
}
253
253
Original file line number Diff line number Diff line change 33
33
// DONT_CHECK-NOT: {{([^I]|$)([^n]|$)([^d]|$)([^e]|$)([^x]|$)([^a]|$)([^b]|$)([^l]|$)([^e]|$)}}
34
34
// CHECK-NOT: buffer: _ArrayBuffer
35
35
// CHECK-NOT: func ~>
36
- // FIXME : Builtin.
37
- // FIXME : RawPointer
36
+ // CHECK-NOT : Builtin.
37
+ // CHECK-NOT : RawPointer
38
38
// CHECK-NOT: extension [
39
39
// CHECK-NOT: extension {{.*}}?
40
40
// CHECK-NOT: extension {{.*}}!
You can’t perform that action at this time.
0 commit comments