added 'replaceResolveMode' to CallCandidateResolutionContext

This commit is contained in:
Svetlana Isakova
2013-02-05 19:09:20 +04:00
parent 35696f9ca0
commit 3f466e8aac
@@ -89,4 +89,11 @@ public final class CallCandidateResolutionContext<D extends CallableDescriptor>
protected CallCandidateResolutionContext<D> self() {
return this;
}
@NotNull
public CallCandidateResolutionContext<D> replaceResolveMode(@NotNull ResolveMode newResolveMode) {
if (newResolveMode == resolveMode) return this;
return new CallCandidateResolutionContext<D>(
candidateCall, tracing, trace, scope, call, expectedType, dataFlowInfo, newResolveMode, namespacesAllowed, false);
}
}