Try loading PSI from descriptor in OtherOrigin constructor

To simplify several call sites
This commit is contained in:
Alexander Udalov
2019-04-25 16:48:44 +02:00
parent 56d5846ef1
commit e9b50157da
3 changed files with 6 additions and 8 deletions
@@ -134,7 +134,7 @@ public class ConstructorCodegen {
ConstructorContext constructorContext = context.intoConstructor(constructorDescriptor, typeMapper);
functionCodegen.generateMethod(
JvmDeclarationOriginKt.OtherOrigin(constructor, constructorDescriptor),
JvmDeclarationOriginKt.OtherOrigin(constructorDescriptor),
constructorDescriptor, constructorContext,
new FunctionGenerationStrategy.CodegenBased(state) {
@Override