From 3f466e8aac12c3f72cccc5e15ef139ad5e7c3a76 Mon Sep 17 00:00:00 2001 From: Svetlana Isakova Date: Tue, 5 Feb 2013 19:09:20 +0400 Subject: [PATCH] added 'replaceResolveMode' to CallCandidateResolutionContext --- .../calls/context/CallCandidateResolutionContext.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/resolve/calls/context/CallCandidateResolutionContext.java b/compiler/frontend/src/org/jetbrains/jet/lang/resolve/calls/context/CallCandidateResolutionContext.java index 85aa16d2230..ba76668f9c7 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/resolve/calls/context/CallCandidateResolutionContext.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/resolve/calls/context/CallCandidateResolutionContext.java @@ -89,4 +89,11 @@ public final class CallCandidateResolutionContext protected CallCandidateResolutionContext self() { return this; } + + @NotNull + public CallCandidateResolutionContext replaceResolveMode(@NotNull ResolveMode newResolveMode) { + if (newResolveMode == resolveMode) return this; + return new CallCandidateResolutionContext( + candidateCall, tracing, trace, scope, call, expectedType, dataFlowInfo, newResolveMode, namespacesAllowed, false); + } }