[IR] Move IrFactory#createExpressionBody overloads to extension methods

This is to prepare for IrFactory auto-generation (KT-59308).
This commit is contained in:
Sergej Jaskiewicz
2023-06-14 14:50:53 +02:00
committed by Space Team
parent ea8b482f4f
commit 3f6420c5b9
14 changed files with 61 additions and 66 deletions
@@ -1036,9 +1036,11 @@ class IrBuiltInsOverFir(
this.isFinal = isConst
}.also {
if (fieldInit != null) {
it.initializer = irFactory.createExpressionBody(0, 0) {
expression = fieldInit
}
it.initializer = irFactory.createExpressionBody(
startOffset = 0,
endOffset = 0,
expression = fieldInit,
)
}
}
}