[FE 1.0] Rename ambiguity's parameter from descriptors to resolvedCalls
This commit is contained in:
committed by
teamcity
parent
8e2b90b5db
commit
c1d3f7e5b4
+2
-2
@@ -115,8 +115,8 @@ public abstract class AbstractTracingStrategy implements TracingStrategy {
|
||||
}
|
||||
|
||||
@Override
|
||||
public <D extends CallableDescriptor> void ambiguity(@NotNull BindingTrace trace, @NotNull Collection<? extends ResolvedCall<D>> descriptors) {
|
||||
trace.report(OVERLOAD_RESOLUTION_AMBIGUITY.on(reference, descriptors));
|
||||
public <D extends CallableDescriptor> void ambiguity(@NotNull BindingTrace trace, @NotNull Collection<? extends ResolvedCall<D>> resolvedCalls) {
|
||||
trace.report(OVERLOAD_RESOLUTION_AMBIGUITY.on(reference, resolvedCalls));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -70,7 +70,7 @@ public interface TracingStrategy {
|
||||
public void wrongNumberOfTypeArguments(@NotNull BindingTrace trace, int expectedTypeArgumentCount, @NotNull CallableDescriptor descriptor) {}
|
||||
|
||||
@Override
|
||||
public <D extends CallableDescriptor> void ambiguity(@NotNull BindingTrace trace, @NotNull Collection<? extends ResolvedCall<D>> descriptors) {}
|
||||
public <D extends CallableDescriptor> void ambiguity(@NotNull BindingTrace trace, @NotNull Collection<? extends ResolvedCall<D>> resolvedCalls) {}
|
||||
|
||||
@Override
|
||||
public <D extends CallableDescriptor> void noneApplicable(@NotNull BindingTrace trace, @NotNull Collection<? extends ResolvedCall<D>> descriptors) {}
|
||||
@@ -135,7 +135,7 @@ public interface TracingStrategy {
|
||||
@NotNull CallableDescriptor descriptor
|
||||
);
|
||||
|
||||
<D extends CallableDescriptor> void ambiguity(@NotNull BindingTrace trace, @NotNull Collection<? extends ResolvedCall<D>> descriptors);
|
||||
<D extends CallableDescriptor> void ambiguity(@NotNull BindingTrace trace, @NotNull Collection<? extends ResolvedCall<D>> resolvedCalls);
|
||||
|
||||
<D extends CallableDescriptor> void noneApplicable(@NotNull BindingTrace trace, @NotNull Collection<? extends ResolvedCall<D>> descriptors);
|
||||
|
||||
|
||||
+1
-1
@@ -69,7 +69,7 @@ class TracingStrategyForImplicitConstructorDelegationCall(
|
||||
reportError(trace)
|
||||
}
|
||||
|
||||
override fun <D : CallableDescriptor?> ambiguity(trace: BindingTrace, descriptors: MutableCollection<out ResolvedCall<D>>) {
|
||||
override fun <D : CallableDescriptor?> ambiguity(trace: BindingTrace, resolvedCalls: MutableCollection<out ResolvedCall<D>>) {
|
||||
reportError(trace)
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -634,7 +634,7 @@ public class ControlStructureTypingUtils {
|
||||
|
||||
@Override
|
||||
public <D extends CallableDescriptor> void ambiguity(
|
||||
@NotNull BindingTrace trace, @NotNull Collection<? extends ResolvedCall<D>> descriptors
|
||||
@NotNull BindingTrace trace, @NotNull Collection<? extends ResolvedCall<D>> resolvedCalls
|
||||
) {
|
||||
logError();
|
||||
}
|
||||
|
||||
@@ -95,8 +95,8 @@ class FakeCallResolver(
|
||||
val call: Call
|
||||
) : TracingStrategy by TracingStrategyImpl.create(fakeExpression, call) {
|
||||
|
||||
override fun <D : CallableDescriptor?> ambiguity(trace: BindingTrace, descriptors: Collection<ResolvedCall<D>>) {
|
||||
trace.report(Errors.COMPONENT_FUNCTION_AMBIGUITY.on(reportErrorsOn, name, descriptors))
|
||||
override fun <D : CallableDescriptor?> ambiguity(trace: BindingTrace, resolvedCalls: Collection<ResolvedCall<D>>) {
|
||||
trace.report(Errors.COMPONENT_FUNCTION_AMBIGUITY.on(reportErrorsOn, name, resolvedCalls))
|
||||
}
|
||||
|
||||
override fun unsafeCall(trace: BindingTrace, type: KotlinType, isCallForImplicitInvoke: Boolean) {
|
||||
@@ -117,8 +117,8 @@ class FakeCallResolver(
|
||||
val call: Call
|
||||
) : TracingStrategy by TracingStrategyImpl.create(fakeExpression, call) {
|
||||
|
||||
override fun <D : CallableDescriptor?> ambiguity(trace: BindingTrace, descriptors: Collection<ResolvedCall<D>>) {
|
||||
trace.report(Errors.ITERATOR_AMBIGUITY.on(reportErrorsOn, descriptors))
|
||||
override fun <D : CallableDescriptor?> ambiguity(trace: BindingTrace, resolvedCalls: Collection<ResolvedCall<D>>) {
|
||||
trace.report(Errors.ITERATOR_AMBIGUITY.on(reportErrorsOn, resolvedCalls))
|
||||
}
|
||||
|
||||
override fun unsafeCall(trace: BindingTrace, type: KotlinType, isCallForImplicitInvoke: Boolean) {
|
||||
|
||||
Reference in New Issue
Block a user