Skip to content

Commit

Permalink
Switch to IrFactoryImpl where required
Browse files Browse the repository at this point in the history
  • Loading branch information
drewhamilton committed Feb 29, 2024
1 parent f09d9d2 commit 23f424d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import org.jetbrains.kotlin.ir.declarations.IrClass
import org.jetbrains.kotlin.ir.declarations.IrFunction
import org.jetbrains.kotlin.ir.declarations.IrProperty
import org.jetbrains.kotlin.ir.declarations.IrSimpleFunction
import org.jetbrains.kotlin.ir.declarations.impl.IrValueParameterImpl
import org.jetbrains.kotlin.ir.declarations.impl.IrFactoryImpl
import org.jetbrains.kotlin.ir.symbols.impl.IrValueParameterSymbolImpl
import org.jetbrains.kotlin.ir.types.createType
import org.jetbrains.kotlin.ir.util.hasAnnotation
Expand Down Expand Up @@ -151,7 +151,7 @@ internal class PokoMembersTransformer(
private fun IrFunction.mutateWithNewDispatchReceiverParameterForParentClass() {
val parentClass = parent as IrClass
val originalReceiver = requireNotNull(dispatchReceiverParameter)
dispatchReceiverParameter = IrValueParameterImpl(
dispatchReceiverParameter = IrFactoryImpl.createValueParameter(
startOffset = originalReceiver.startOffset,
endOffset = originalReceiver.endOffset,
origin = originalReceiver.origin,
Expand Down

0 comments on commit 23f424d

Please sign in to comment.