Minor, rename TypeConstructorImpl -> ClassTypeConstructorImpl
This commit is contained in:
@@ -26,9 +26,9 @@ import org.jetbrains.kotlin.descriptors.impl.DeclarationDescriptorImpl;
|
||||
import org.jetbrains.kotlin.name.Name;
|
||||
import org.jetbrains.kotlin.resolve.scopes.MemberScope;
|
||||
import org.jetbrains.kotlin.storage.LockBasedStorageManager;
|
||||
import org.jetbrains.kotlin.types.ClassTypeConstructorImpl;
|
||||
import org.jetbrains.kotlin.types.KotlinType;
|
||||
import org.jetbrains.kotlin.types.TypeConstructor;
|
||||
import org.jetbrains.kotlin.types.TypeConstructorImpl;
|
||||
import org.jetbrains.kotlin.types.TypeUtils;
|
||||
|
||||
import java.util.*;
|
||||
@@ -151,7 +151,7 @@ public class MutableClassDescriptor extends ClassDescriptorBase implements Class
|
||||
|
||||
public void createTypeConstructor() {
|
||||
assert typeConstructor == null : typeConstructor;
|
||||
this.typeConstructor = new TypeConstructorImpl(
|
||||
this.typeConstructor = new ClassTypeConstructorImpl(
|
||||
this, Annotations.Companion.getEMPTY(), ModalityKt.isFinalClass(this), typeParameters, supertypes
|
||||
);
|
||||
for (FunctionDescriptor functionDescriptor : getConstructors()) {
|
||||
|
||||
@@ -23,9 +23,9 @@ import org.jetbrains.kotlin.descriptors.annotations.Annotations;
|
||||
import org.jetbrains.kotlin.name.Name;
|
||||
import org.jetbrains.kotlin.resolve.scopes.MemberScope;
|
||||
import org.jetbrains.kotlin.storage.LockBasedStorageManager;
|
||||
import org.jetbrains.kotlin.types.ClassTypeConstructorImpl;
|
||||
import org.jetbrains.kotlin.types.KotlinType;
|
||||
import org.jetbrains.kotlin.types.TypeConstructor;
|
||||
import org.jetbrains.kotlin.types.TypeConstructorImpl;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
@@ -53,7 +53,7 @@ public class ClassDescriptorImpl extends ClassDescriptorBase {
|
||||
this.modality = modality;
|
||||
this.kind = kind;
|
||||
|
||||
this.typeConstructor = new TypeConstructorImpl(
|
||||
this.typeConstructor = new ClassTypeConstructorImpl(
|
||||
this, Annotations.Companion.getEMPTY(), false, Collections.<TypeParameterDescriptor>emptyList(), supertypes
|
||||
);
|
||||
}
|
||||
|
||||
+2
-2
@@ -34,9 +34,9 @@ import org.jetbrains.kotlin.resolve.scopes.MemberScopeImpl;
|
||||
import org.jetbrains.kotlin.storage.MemoizedFunctionToNotNull;
|
||||
import org.jetbrains.kotlin.storage.NotNullLazyValue;
|
||||
import org.jetbrains.kotlin.storage.StorageManager;
|
||||
import org.jetbrains.kotlin.types.ClassTypeConstructorImpl;
|
||||
import org.jetbrains.kotlin.types.KotlinType;
|
||||
import org.jetbrains.kotlin.types.TypeConstructor;
|
||||
import org.jetbrains.kotlin.types.TypeConstructorImpl;
|
||||
import org.jetbrains.kotlin.utils.Printer;
|
||||
|
||||
import java.util.*;
|
||||
@@ -79,7 +79,7 @@ public class EnumEntrySyntheticClassDescriptor extends ClassDescriptorBase {
|
||||
assert containingClass.getKind() == ClassKind.ENUM_CLASS;
|
||||
|
||||
this.annotations = annotations;
|
||||
this.typeConstructor = new TypeConstructorImpl(
|
||||
this.typeConstructor = new ClassTypeConstructorImpl(
|
||||
this, getAnnotations(), true, Collections.<TypeParameterDescriptor>emptyList(), Collections.singleton(supertype)
|
||||
);
|
||||
|
||||
|
||||
+1
-1
@@ -84,7 +84,7 @@ public class LazySubstitutingClassDescriptor implements ClassDescriptor {
|
||||
supertypes.add(substitutor.substitute(supertype, Variance.INVARIANT));
|
||||
}
|
||||
|
||||
typeConstructor = new TypeConstructorImpl(
|
||||
typeConstructor = new ClassTypeConstructorImpl(
|
||||
this, originalTypeConstructor.getAnnotations(), originalTypeConstructor.isFinal(), typeConstructorParameters, supertypes
|
||||
);
|
||||
}
|
||||
|
||||
+2
-2
@@ -29,14 +29,14 @@ import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
public class TypeConstructorImpl extends AbstractClassTypeConstructor implements TypeConstructor {
|
||||
public class ClassTypeConstructorImpl extends AbstractClassTypeConstructor implements TypeConstructor {
|
||||
private final ClassDescriptor classDescriptor;
|
||||
private final Annotations annotations;
|
||||
private final List<TypeParameterDescriptor> parameters;
|
||||
private final Collection<KotlinType> supertypes;
|
||||
private final boolean isFinal;
|
||||
|
||||
public TypeConstructorImpl(
|
||||
public ClassTypeConstructorImpl(
|
||||
@NotNull ClassDescriptor classDescriptor,
|
||||
@NotNull Annotations annotations,
|
||||
boolean isFinal,
|
||||
Reference in New Issue
Block a user