KT-1508 jet.Number -> j.l.Number

This commit is contained in:
Alex Tkachman
2012-03-17 13:57:45 +02:00
parent d8aa0d139e
commit 56eabfe07b
4 changed files with 18 additions and 4 deletions
@@ -96,6 +96,7 @@ public class JetStandardLibrary {
private ClassDescriptor volatileClass;
private ClassDescriptor throwableClass;
private JetType numberType;
private JetType stringType;
private JetType volatileType;
private JetType nullableStringType;
@@ -161,6 +162,7 @@ public class JetStandardLibrary {
private void initStdClasses() {
if(libraryScope == null) {
this.libraryScope = JetStandardClasses.STANDARD_CLASSES_NAMESPACE.getMemberScope();
this.numberClass = (ClassDescriptor) libraryScope.getClassifier("Number");
this.stringClass = (ClassDescriptor) libraryScope.getClassifier("String");
this.charSequenceClass = (ClassDescriptor) libraryScope.getClassifier("CharSequence");
@@ -172,6 +174,7 @@ public class JetStandardLibrary {
this.comparableClass = (ClassDescriptor) libraryScope.getClassifier("Comparable");
this.typeInfoFunction = libraryScope.getFunctions("typeinfo");
this.numberType = new JetTypeImpl(getNumber());
this.stringType = new JetTypeImpl(getString());
this.charSequenceType = new JetTypeImpl(getCharSequence());
this.nullableCharSequenceType = TypeUtils.makeNullable(charSequenceType);
@@ -513,4 +516,8 @@ public class JetStandardLibrary {
public JetType getTuple0Type() {
return tuple0Type;
}
public JetType getNumberType() {
return numberType;
}
}