Renamed function
This commit is contained in:
@@ -62,7 +62,7 @@ class CodeToInlineBuilder(
|
|||||||
|
|
||||||
bindingContext = insertExplicitTypeArguments(codeToInline, bindingContext, analyze)
|
bindingContext = insertExplicitTypeArguments(codeToInline, bindingContext, analyze)
|
||||||
|
|
||||||
insertExplicitReceivers(codeToInline, bindingContext)
|
processReferences(codeToInline, bindingContext)
|
||||||
|
|
||||||
// NB: we must check in codeToInline, otherwise we get AE from addPostInsertionAction
|
// NB: we must check in codeToInline, otherwise we get AE from addPostInsertionAction
|
||||||
if (mainExpression != null && mainExpression in codeToInline) {
|
if (mainExpression != null && mainExpression in codeToInline) {
|
||||||
@@ -135,7 +135,7 @@ class CodeToInlineBuilder(
|
|||||||
return analyze()
|
return analyze()
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun insertExplicitReceivers(codeToInline: MutableCodeToInline, bindingContext: BindingContext) {
|
private fun processReferences(codeToInline: MutableCodeToInline, bindingContext: BindingContext) {
|
||||||
val receiversToAdd = ArrayList<Pair<KtExpression, KtExpression>>()
|
val receiversToAdd = ArrayList<Pair<KtExpression, KtExpression>>()
|
||||||
|
|
||||||
codeToInline.forEachDescendantOfType<KtSimpleNameExpression> { expression ->
|
codeToInline.forEachDescendantOfType<KtSimpleNameExpression> { expression ->
|
||||||
|
|||||||
Reference in New Issue
Block a user