Replaced usages of getAllDescriptors() from Kotlin code with getDescriptors()

This commit is contained in:
Valentin Kipyatkov
2014-11-10 22:24:01 +03:00
parent 16c7201b34
commit ff4d91d47b
5 changed files with 6 additions and 6 deletions
@@ -51,12 +51,12 @@ fun generate(): String {
val builtIns = KotlinBuiltIns.getInstance()
[suppress("UNCHECKED_CAST")]
val allPrimitiveTypes = builtIns.getBuiltInsPackageScope().getAllDescriptors()
val allPrimitiveTypes = builtIns.getBuiltInsPackageScope().getDescriptors()
.filter { it is ClassDescriptor && builtIns.isPrimitiveType(it.getDefaultType()) } as List<ClassDescriptor>
for (descriptor in allPrimitiveTypes + builtIns.getString()) {
[suppress("UNCHECKED_CAST")]
val functions = descriptor.getMemberScope(Collections.emptyList()).getAllDescriptors()
val functions = descriptor.getMemberScope(Collections.emptyList()).getDescriptors()
.filter { it is FunctionDescriptor && !EXCLUDED_FUNCTIONS.contains(it.getName().asString()) } as List<FunctionDescriptor>
for (function in functions) {