[JS IR BE] Implement type check

* IrTypeOperator lowering
 * runtime support
 * refactoring
This commit is contained in:
Roman Artemev
2018-05-31 15:35:08 +03:00
parent 50eda3b8a0
commit 17d71f1e46
22 changed files with 673 additions and 89 deletions
@@ -944,6 +944,10 @@ public abstract class KotlinBuiltIns {
return classFqNameEquals(classDescriptor, FQ_NAMES._boolean);
}
public static boolean isNumber(@NotNull KotlinType type) {
return isConstructedFromGivenClassAndNotNullable(type, FQ_NAMES.number);
}
public static boolean isChar(@NotNull KotlinType type) {
return isConstructedFromGivenClassAndNotNullable(type, FQ_NAMES._char);
}