Add JetTypeMapper.mapClass

Should be used instead of "mapType(*.getDefaultType(), IMPL)" pattern
This commit is contained in:
Alexander Udalov
2013-10-16 19:32:57 +04:00
parent d22edcdbb3
commit af2a52bd4e
9 changed files with 45 additions and 86 deletions
@@ -220,14 +220,6 @@ public class DescriptorUtils {
return false;
}
public static void addSuperTypes(@NotNull JetType type, @NotNull Set<JetType> set) {
set.add(type);
for (JetType jetType : type.getConstructor().getSupertypes()) {
addSuperTypes(jetType, set);
}
}
public static boolean isRootNamespace(@NotNull NamespaceDescriptor namespaceDescriptor) {
return namespaceDescriptor.getContainingDeclaration() instanceof ModuleDescriptor;
}