@@ -3360,13 +3360,13 @@ namespace {
3360
3360
// declaration.
3361
3361
if (auto imported = VisitObjCMethodDecl (decl, dc,
3362
3362
/* forceClassMethod=*/ true ))
3363
- Impl.AlternateDecls [ result] = cast<ValueDecl>(imported);
3363
+ Impl.setAlternateDecl ( result, cast<ValueDecl>(imported) );
3364
3364
} else if (auto factory = importFactoryMethodAsConstructor (
3365
3365
result, decl, selector, dc)) {
3366
3366
// We imported the factory method as an initializer, so
3367
3367
// record it as an alternate declaration.
3368
3368
if (*factory)
3369
- Impl.AlternateDecls [ result] = *factory;
3369
+ Impl.setAlternateDecl ( result, *factory) ;
3370
3370
}
3371
3371
3372
3372
}
@@ -4971,7 +4971,7 @@ SwiftDeclConverter::getImplicitProperty(ImportedName importedName,
4971
4971
SourceLoc ());
4972
4972
4973
4973
// Make the property the alternate declaration for the getter.
4974
- Impl.AlternateDecls [ swiftGetter] = property;
4974
+ Impl.setAlternateDecl ( swiftGetter, property) ;
4975
4975
4976
4976
return property;
4977
4977
}
@@ -5021,7 +5021,7 @@ SwiftDeclConverter::importFactoryMethodAsConstructor(
5021
5021
// / Record the initializer as an alternative declaration for the
5022
5022
// / member.
5023
5023
if (result) {
5024
- Impl.AlternateDecls [ member] = result;
5024
+ Impl.setAlternateDecl ( member, result) ;
5025
5025
5026
5026
if (swift3Name)
5027
5027
markAsSwift2Variant (result, *swift3Name);
@@ -5736,7 +5736,7 @@ SwiftDeclConverter::importSubscript(Decl *decl,
5736
5736
TypeLoc::withoutLoc (elementContextTy), dc);
5737
5737
5738
5738
// / Record the subscript as an alternative declaration.
5739
- Impl.AlternateDecls [ associateWithSetter ? setter : getter] = subscript;
5739
+ Impl.setAlternateDecl ( associateWithSetter ? setter : getter, subscript) ;
5740
5740
5741
5741
subscript->makeComputed (SourceLoc (), getterThunk, setterThunk, nullptr ,
5742
5742
SourceLoc ());
0 commit comments