Renamed function

This commit is contained in:
Valentin Kipyatkov
2017-07-26 17:59:39 +03:00
parent 7f467f0fdd
commit 6ba96b1103
@@ -62,7 +62,7 @@ class CodeToInlineBuilder(
bindingContext = insertExplicitTypeArguments(codeToInline, bindingContext, analyze)
insertExplicitReceivers(codeToInline, bindingContext)
processReferences(codeToInline, bindingContext)
// NB: we must check in codeToInline, otherwise we get AE from addPostInsertionAction
if (mainExpression != null && mainExpression in codeToInline) {
@@ -135,7 +135,7 @@ class CodeToInlineBuilder(
return analyze()
}
private fun insertExplicitReceivers(codeToInline: MutableCodeToInline, bindingContext: BindingContext) {
private fun processReferences(codeToInline: MutableCodeToInline, bindingContext: BindingContext) {
val receiversToAdd = ArrayList<Pair<KtExpression, KtExpression>>()
codeToInline.forEachDescendantOfType<KtSimpleNameExpression> { expression ->