Got rid of conustructors zoo in value parameter and getter/setter descriptors.
This commit is contained in:
+1
@@ -148,6 +148,7 @@ public class LazyJavaClassMemberScope(
|
||||
|
||||
result.add(ValueParameterDescriptorImpl(
|
||||
constructor,
|
||||
null,
|
||||
index,
|
||||
Annotations.EMPTY,
|
||||
method.getName(),
|
||||
|
||||
+1
@@ -210,6 +210,7 @@ public abstract class LazyJavaMemberScope(
|
||||
|
||||
ValueParameterDescriptorImpl(
|
||||
function,
|
||||
null,
|
||||
index,
|
||||
c.resolveAnnotations(javaParameter),
|
||||
name,
|
||||
|
||||
+2
-2
@@ -147,7 +147,7 @@ public class SingleAbstractMethodUtils {
|
||||
assert parameterType != null : "couldn't substitute type: " + parameterTypeUnsubstituted +
|
||||
", substitutor = " + typeParameters.substitutor;
|
||||
ValueParameterDescriptor parameter = new ValueParameterDescriptorImpl(
|
||||
result, 0, Annotations.EMPTY, Name.identifier("function"), parameterType, false, null);
|
||||
result, null, 0, Annotations.EMPTY, Name.identifier("function"), parameterType, false, null);
|
||||
|
||||
JetType returnType = typeParameters.substitutor.substitute(samInterface.getDefaultType(), Variance.OUT_VARIANCE);
|
||||
assert returnType != null : "couldn't substitute type: " + samInterface.getDefaultType() +
|
||||
@@ -251,7 +251,7 @@ public class SingleAbstractMethodUtils {
|
||||
assert newType != null : "couldn't substitute type: " + newTypeUnsubstituted + ", substitutor = " + typeParameters.substitutor;
|
||||
|
||||
ValueParameterDescriptor newParam = new ValueParameterDescriptorImpl(
|
||||
adapter, originalParam.getIndex(), originalParam.getAnnotations(), originalParam.getName(), newType, false, null);
|
||||
adapter, null, originalParam.getIndex(), originalParam.getAnnotations(), originalParam.getName(), newType, false, null);
|
||||
valueParameters.add(newParam);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user