All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jetbrains.kotlin.ir.expressions.impl.IrFunctionExpressionImpl.kt Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
/*
 * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
 * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
 */

package org.jetbrains.kotlin.ir.expressions.impl

import org.jetbrains.kotlin.ir.declarations.IrSimpleFunction
import org.jetbrains.kotlin.ir.expressions.IrFunctionExpression
import org.jetbrains.kotlin.ir.expressions.IrStatementOrigin
import org.jetbrains.kotlin.ir.types.IrType
import org.jetbrains.kotlin.ir.visitors.IrElementTransformer
import org.jetbrains.kotlin.ir.visitors.IrElementVisitor

class IrFunctionExpressionImpl(
    override val startOffset: Int,
    override val endOffset: Int,
    override val type: IrType,
    override var function: IrSimpleFunction,
    override val origin: IrStatementOrigin
) : IrFunctionExpression() {
    override fun  accept(visitor: IrElementVisitor, data: D): R {
        return visitor.visitFunctionExpression(this, data)
    }

    override fun  acceptChildren(visitor: IrElementVisitor, data: D) {
        function.accept(visitor, data)
    }

    override fun  transformChildren(transformer: IrElementTransformer, data: D) {
        function = function.transform(transformer, data) as IrSimpleFunction
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy