Replaced usages of getAllDescriptors() from Kotlin code with getDescriptors()
This commit is contained in:
@@ -117,7 +117,7 @@ public class MultiModuleJavaAnalysisCustomTest : UsefulTestCase() {
|
||||
}
|
||||
|
||||
private fun checkClass(classDescriptor: ClassDescriptor) {
|
||||
classDescriptor.getDefaultType().getMemberScope().getAllDescriptors().filterIsInstance(javaClass<CallableDescriptor>()).forEach {
|
||||
classDescriptor.getDefaultType().getMemberScope().getDescriptors().filterIsInstance(javaClass<CallableDescriptor>()).forEach {
|
||||
checkCallable(it)
|
||||
}
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
+1
-1
@@ -153,7 +153,7 @@ private fun buildDecompiledText(packageFqName: FqName, descriptors: List<Declara
|
||||
builder.append(subindent)
|
||||
appendDescriptor(classObject, subindent)
|
||||
}
|
||||
for (member in sortDeclarations(descriptor.getDefaultType().getMemberScope().getAllDescriptors())) {
|
||||
for (member in sortDeclarations(descriptor.getDefaultType().getMemberScope().getDescriptors())) {
|
||||
if (member.getContainingDeclaration() != descriptor) {
|
||||
continue
|
||||
}
|
||||
|
||||
+1
-1
@@ -68,7 +68,7 @@ public class DeserializerForDecompiler(val packageDirectory: VirtualFile, val di
|
||||
JavaProtoBufUtil.readPackageDataFrom(annotationData),
|
||||
deserializationContext
|
||||
) { listOf() }
|
||||
return membersScope.getAllDescriptors()
|
||||
return membersScope.getDescriptors()
|
||||
}
|
||||
|
||||
private val localClassFinder = object : KotlinClassFinder {
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@ public class KotlinInheritedMembersNodeProvider: InheritedMembersNodeProvider<Tr
|
||||
val children = ArrayList<TreeElement>()
|
||||
|
||||
val defaultType = descriptor.getDefaultType()
|
||||
for (memberDescriptor in defaultType.getMemberScope().getAllDescriptors()) {
|
||||
for (memberDescriptor in defaultType.getMemberScope().getDescriptors()) {
|
||||
if (memberDescriptor !is CallableMemberDescriptor) continue
|
||||
|
||||
when (memberDescriptor.getKind()) {
|
||||
|
||||
Reference in New Issue
Block a user