@@ -3773,28 +3773,28 @@ struct ResolvedMemberResult::Implementation {
3773
3773
Optional<unsigned > BestIdx;
3774
3774
};
3775
3775
3776
- ResolvedMemberResult::ResolvedMemberResult (): Impl(* new Implementation()) {};
3776
+ ResolvedMemberResult::ResolvedMemberResult (): Impl(new Implementation()) {};
3777
3777
3778
- ResolvedMemberResult::~ResolvedMemberResult () { delete & Impl; };
3778
+ ResolvedMemberResult::~ResolvedMemberResult () { delete Impl; };
3779
3779
3780
3780
ResolvedMemberResult::operator bool () const {
3781
- return !Impl. AllDecls .empty ();
3781
+ return !Impl-> AllDecls .empty ();
3782
3782
}
3783
3783
3784
3784
bool ResolvedMemberResult::
3785
- hasBestOverload () const { return Impl. BestIdx .hasValue (); }
3785
+ hasBestOverload () const { return Impl-> BestIdx .hasValue (); }
3786
3786
3787
3787
ValueDecl* ResolvedMemberResult::
3788
- getBestOverload () const { return Impl. AllDecls [Impl. BestIdx .getValue ()]; }
3788
+ getBestOverload () const { return Impl-> AllDecls [Impl-> BestIdx .getValue ()]; }
3789
3789
3790
3790
ArrayRef<ValueDecl*> ResolvedMemberResult::
3791
3791
getMemberDecls (InterestedMemberKind Kind) {
3792
- auto Result = llvm::makeArrayRef (Impl. AllDecls );
3792
+ auto Result = llvm::makeArrayRef (Impl-> AllDecls );
3793
3793
switch (Kind) {
3794
3794
case InterestedMemberKind::Viable:
3795
- return Result.slice (Impl. ViableStartIdx );
3795
+ return Result.slice (Impl-> ViableStartIdx );
3796
3796
case InterestedMemberKind::Unviable:
3797
- return Result.slice (0 , Impl. ViableStartIdx );
3797
+ return Result.slice (0 , Impl-> ViableStartIdx );
3798
3798
case InterestedMemberKind::All:
3799
3799
return Result;
3800
3800
}
@@ -3816,10 +3816,10 @@ swift::resolveValueMember(DeclContext &DC, Type BaseTy, DeclName Name) {
3816
3816
3817
3817
// Keep track of all the unviable members.
3818
3818
for (auto Can : LookupResult.UnviableCandidates )
3819
- Result.Impl . AllDecls .push_back (Can.getDecl ());
3819
+ Result.Impl -> AllDecls .push_back (Can.getDecl ());
3820
3820
3821
3821
// Keep track of the start of viable choices.
3822
- Result.Impl . ViableStartIdx = Result.Impl . AllDecls .size ();
3822
+ Result.Impl -> ViableStartIdx = Result.Impl -> AllDecls .size ();
3823
3823
3824
3824
// If no viable members, we are done.
3825
3825
if (LookupResult.ViableCandidates .empty ())
@@ -3839,8 +3839,8 @@ swift::resolveValueMember(DeclContext &DC, Type BaseTy, DeclName Name) {
3839
3839
3840
3840
// If this VD is the best overload, keep track of its index.
3841
3841
if (VD == Selected)
3842
- Result.Impl . BestIdx = Result.Impl . AllDecls .size ();
3843
- Result.Impl . AllDecls .push_back (VD);
3842
+ Result.Impl -> BestIdx = Result.Impl -> AllDecls .size ();
3843
+ Result.Impl -> AllDecls .push_back (VD);
3844
3844
}
3845
3845
return Result;
3846
3846
}
@@ -3898,4 +3898,4 @@ swift::getOriginalArgumentList(Expr *expr) {
3898
3898
}
3899
3899
3900
3900
return result;
3901
- }
3901
+ }
0 commit comments