IR: remove deprecated constructors of IrFunctionImpl

This commit is contained in:
Alexander Udalov
2020-07-06 22:50:35 +02:00
parent 551f1f85a9
commit 7f9ef5e11d
4 changed files with 23 additions and 56 deletions
@@ -281,14 +281,12 @@ interface IrBuilderExtension {
assert(symbol.isBound || declare)
if (declare) {
IrFunctionImpl(
fieldSymbol.owner.startOffset,
fieldSymbol.owner.endOffset,
SERIALIZABLE_PLUGIN_ORIGIN,
symbol,
descriptor.returnType!!.toIrType(),
descriptor
).also { f ->
with(descriptor) {
IrFunctionImpl(
fieldSymbol.owner.startOffset, fieldSymbol.owner.endOffset, SERIALIZABLE_PLUGIN_ORIGIN, symbol,
name, visibility, modality, returnType!!.toIrType(), isInline, isExternal, isTailrec, isSuspend, isOperator, isExpect
)
}.also { f ->
generateOverriddenFunctionSymbols(f, compilerContext.symbolTable)
f.createParameterDeclarations(receiver = null)
f.returnType = descriptor.returnType!!.toIrType()