This commit is contained in:
Valentin Kipyatkov
2020-02-10 11:32:35 +02:00
parent 3897f51f8e
commit 826c5dd92e
2 changed files with 2 additions and 2 deletions
@@ -207,7 +207,7 @@ class InflowSlicer(
val accessSearchScope = if (isVar) {
analysisScope
} else {
val containerScope = getStrictParentOfType<KtDeclaration>()?.let { LocalSearchScope(it) } ?: return
val containerScope = LocalSearchScope(getStrictParentOfType<KtDeclaration>() ?: return)
analysisScope.intersectWith(containerScope)
}
processAssignments(this, accessSearchScope)
@@ -38,7 +38,7 @@ abstract class Slicer(
) {
abstract fun processChildren()
protected val analysisScope = parentUsage.scope.toSearchScope()
protected val analysisScope: SearchScope = parentUsage.scope.toSearchScope()
protected class PseudocodeCache {
private val computedPseudocodes = HashMap<KtElement, Pseudocode>()