Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinkip committed Apr 17, 2020
1 parent b4b58d1 commit 86c98b0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions idea/src/org/jetbrains/kotlin/idea/slicer/InflowSlicer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,11 @@ class InflowSlicer(
}
}

fun processCall(usageInfo: UsageInfo) {
processCalls(function, analysisScope, includeOverriders) { usageInfo ->
usageInfo.element?.let {
extractArgumentExpression(it)?.passToProcessorAsValue()
}
}

processCalls(function, analysisScope, includeOverriders, ::processCall)
}

if (parameter.valOrVarKeyword.toValVar() == KotlinValVar.Var) {
Expand Down Expand Up @@ -187,13 +185,11 @@ class InflowSlicer(
}
}

fun processCall(usageInfo: UsageInfo) {
processCalls(declaration, analysisScope, includeOverriders) { usageInfo ->
usageInfo.element?.let {
processReceiver(it)
}
}

processCalls(declaration, analysisScope, includeOverriders, ::processCall)
}

private fun processExpression(expression: KtExpression) {
Expand Down

0 comments on commit 86c98b0

Please sign in to comment.