comment added

This commit is contained in:
svtk
2013-11-01 13:02:46 +04:00
parent d56b4d453c
commit 28e4642289
2 changed files with 3 additions and 2 deletions
@@ -395,9 +395,9 @@ public class CallResolver {
if (results.isSingleResult()) {
ResolvedCallWithTrace<F> resultingCall = results.getResultingCall();
CallCandidateResolutionContext<F> callCandidateResolutionContext = CallCandidateResolutionContext.createForCallBeingAnalyzed(
CallCandidateResolutionContext<F> contextForCallToCompleteTypeArgumentInference = CallCandidateResolutionContext.createForCallBeingAnalyzed(
results.getResultingCall().getCallToCompleteTypeArgumentInference(), context, tracing);
context.resolutionResultsCache.recordDeferredComputationForCall(callKey, resultingCall, callCandidateResolutionContext);
context.resolutionResultsCache.recordDeferredComputationForCall(callKey, resultingCall, contextForCallToCompleteTypeArgumentInference);
}
}
@@ -54,6 +54,7 @@ public interface ResolutionResultsCache {
@Nullable
DelegatingBindingTrace getResolutionTrace(@NotNull CallKey callKey);
//For VariableAsFunctionCall deferredComputation is taken for its function call, but resolvedCall is the VariableAsFunctionCall itself.
<D extends CallableDescriptor> void recordDeferredComputationForCall(
@NotNull CallKey callKey,
@NotNull ResolvedCallWithTrace<D> resolvedCall,