From 8f688ab7b7d560f0c9947e2aacb67811e7afded2 Mon Sep 17 00:00:00 2001 From: Valentin Kipyatkov Date: Fri, 16 Jan 2015 23:00:11 +0300 Subject: [PATCH] Renamed --- .../org/jetbrains/kotlin/idea/util/IterableTypesDetector.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/idea/src/org/jetbrains/kotlin/idea/util/IterableTypesDetector.kt b/idea/src/org/jetbrains/kotlin/idea/util/IterableTypesDetector.kt index 31bb2be9f6f..454b13dd686 100644 --- a/idea/src/org/jetbrains/kotlin/idea/util/IterableTypesDetector.kt +++ b/idea/src/org/jetbrains/kotlin/idea/util/IterableTypesDetector.kt @@ -42,7 +42,7 @@ public class IterableTypesDetector( private val cache = HashMap() private val iteratorName = Name.identifier("iterator") - private val typesWithIteratorExtensions: Collection = scope.getFunctions(iteratorName) + private val typesWithExtensionIterator: Collection = scope.getFunctions(iteratorName) .map { it.getExtensionReceiverParameter() } .filterNotNull() .map { it.getType() } @@ -64,6 +64,6 @@ public class IterableTypesDetector( } private fun canBeIterable(type: JetType): Boolean { - return type.getMemberScope().getFunctions(iteratorName).isEmpty() || typesWithIteratorExtensions.any { type.isSubtypeOf(type) } + return type.getMemberScope().getFunctions(iteratorName).isEmpty() || typesWithExtensionIterator.any { type.isSubtypeOf(type) } } } \ No newline at end of file