Initial support of function callable references

This commit is contained in:
Mikhael Bogdanov
2018-08-08 12:13:45 +03:00
parent 06b16a6459
commit 813e1ffa39
8 changed files with 787 additions and 12 deletions
@@ -145,6 +145,9 @@ fun IrBuilderWithScope.irSetVar(variable: IrVariableSymbol, value: IrExpression)
fun IrBuilderWithScope.irGetField(receiver: IrExpression?, field: IrField) =
IrGetFieldImpl(startOffset, endOffset, field.symbol, field.type, receiver)
fun IrBuilderWithScope.irSetField(receiver: IrExpression?, field: IrField, value: IrExpression) =
IrSetFieldImpl(startOffset, endOffset, field.symbol, receiver, value, field.type)
fun IrBuilderWithScope.irGetObjectValue(type: IrType, classSymbol: IrClassSymbol) =
IrGetObjectValueImpl(startOffset, endOffset, type, classSymbol)
@@ -251,4 +254,4 @@ fun IrBuilderWithScope.irSetField(receiver: IrExpression, irField: IrField, valu
receiver = receiver,
value = value,
type = context.irBuiltIns.unitType
)
)