[K/JS, K/WASM] feat(Enum.entries): add support of new enum static field for JS and WASM.

This commit is contained in:
Artem Kobzar
2022-08-29 16:04:12 +00:00
committed by Space
parent bd6aff7f6a
commit 8b826a865b
22 changed files with 231 additions and 37 deletions
@@ -350,6 +350,16 @@ fun IrBuilderWithScope.irVararg(elementType: IrType, values: List<IrExpression>)
fun IrBuilderWithScope.irRawFunctionReferefence(type: IrType, symbol: IrFunctionSymbol) =
IrRawFunctionReferenceImpl(startOffset, endOffset, type, symbol)
fun IrBuilderWithScope.irFunctionReference(type: IrType, symbol: IrFunctionSymbol) =
IrFunctionReferenceImpl(
startOffset,
endOffset,
type,
symbol,
symbol.owner.typeParameters.size,
symbol.owner.valueParameters.size
)
fun IrBuilderWithScope.irTry(type: IrType, tryResult: IrExpression, catches: List<IrCatch>, finallyExpression: IrExpression?) =
IrTryImpl(startOffset, endOffset, type, tryResult, catches, finallyExpression)