getTypeConstructor() pushed back down

This commit is contained in:
Andrey Breslav
2012-05-25 23:02:51 +04:00
parent 0182b87732
commit 3702bdea70
2 changed files with 8 additions and 7 deletions
@@ -29,7 +29,6 @@ import java.util.Map;
*/
public abstract class ClassDescriptorBase implements ClassDescriptor {
protected TypeConstructor typeConstructor;
protected JetType defaultType;
protected abstract JetScope getScopeForMemberLookup();
@@ -59,12 +58,6 @@ public abstract class ClassDescriptorBase implements ClassDescriptor {
return new LazySubstitutingClassDescriptor(this, substitutor);
}
@NotNull
@Override
public TypeConstructor getTypeConstructor() {
return typeConstructor;
}
@NotNull
@Override
public JetType getDefaultType() {
@@ -46,6 +46,8 @@ public class MutableClassDescriptorLite extends ClassDescriptorBase
private List<TypeParameterDescriptor> typeParameters;
private Collection<JetType> supertypes = Lists.newArrayList();
private TypeConstructor typeConstructor;
private Modality modality;
private Visibility visibility;
@@ -113,6 +115,12 @@ public class MutableClassDescriptorLite extends ClassDescriptorBase
}
}
@NotNull
@Override
public TypeConstructor getTypeConstructor() {
return typeConstructor;
}
public void setScopeForMemberLookup(JetScope scopeForMemberLookup) {
this.scopeForMemberLookup = scopeForMemberLookup;
this.innerClassesScope = new InnerClassesScopeWrapper(scopeForMemberLookup);