[IR] Remove FunctionDescriptor from IrCall-like node's constructor interface

This commit is contained in:
Roman Artemev
2019-10-22 16:38:57 +03:00
committed by romanart
parent bf367003f9
commit ba373c67d7
42 changed files with 90 additions and 190 deletions
@@ -226,8 +226,7 @@ interface IrBuilderExtension {
+IrDelegatingConstructorCallImpl(
startOffset, endOffset,
compilerContext.irBuiltIns.unitType,
compilerContext.externalSymbols.referenceConstructor(anyConstructor),
anyConstructor
compilerContext.externalSymbols.referenceConstructor(anyConstructor)
)
}
}
@@ -119,8 +119,7 @@ class SerializableIrGenerator(
startOffset,
endOffset,
compilerContext.irBuiltIns.unitType,
ctorRef,
suitableCtor
ctorRef
)
call.insertTypeArgumentsForSuperClass(superClass)
+call
@@ -152,8 +151,7 @@ class SerializableIrGenerator(
startOffset,
endOffset,
compilerContext.irBuiltIns.unitType,
superCtorRef,
superCtorRef.owner.descriptor
superCtorRef
)
arguments.forEachIndexed { index, parameter -> call.putValueArgument(index, irGet(parameter)) }
call.insertTypeArgumentsForSuperClass(superClass)