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

org.jetbrains.kotlin.fir.declarations.FirFunction.kt Maven / Gradle / Ivy

/*
 * Copyright 2010-2021 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.fir.declarations

import org.jetbrains.kotlin.fir.FirSession
import org.jetbrains.kotlin.fir.FirSourceElement
import org.jetbrains.kotlin.fir.FirTargetElement
import org.jetbrains.kotlin.fir.expressions.FirAnnotationCall
import org.jetbrains.kotlin.fir.expressions.FirBlock
import org.jetbrains.kotlin.fir.expressions.FirStatement
import org.jetbrains.kotlin.fir.references.FirControlFlowGraphReference
import org.jetbrains.kotlin.fir.symbols.impl.FirFunctionSymbol
import org.jetbrains.kotlin.fir.types.FirTypeRef
import org.jetbrains.kotlin.fir.visitors.*

/*
 * This file was generated automatically
 * DO NOT MODIFY IT MANUALLY
 */

interface FirFunction> : FirCallableDeclaration, FirTargetElement, FirTypeParameterRefsOwner, FirControlFlowGraphOwner, FirStatement {
    override val source: FirSourceElement?
    override val session: FirSession
    override val resolvePhase: FirResolvePhase
    override val origin: FirDeclarationOrigin
    override val attributes: FirDeclarationAttributes
    override val annotations: List
    override val returnTypeRef: FirTypeRef
    override val receiverTypeRef: FirTypeRef?
    override val typeParameters: List
    override val controlFlowGraphReference: FirControlFlowGraphReference?
    override val symbol: FirFunctionSymbol
    val valueParameters: List
    val body: FirBlock?

    override fun  accept(visitor: FirVisitor, data: D): R = visitor.visitFunction(this, data)

    override fun replaceResolvePhase(newResolvePhase: FirResolvePhase)

    override fun replaceReturnTypeRef(newReturnTypeRef: FirTypeRef)

    override fun replaceReceiverTypeRef(newReceiverTypeRef: FirTypeRef?)

    override fun replaceControlFlowGraphReference(newControlFlowGraphReference: FirControlFlowGraphReference?)

    fun replaceValueParameters(newValueParameters: List)

    fun replaceBody(newBody: FirBlock?)

    override fun  transformAnnotations(transformer: FirTransformer, data: D): FirFunction

    override fun  transformReturnTypeRef(transformer: FirTransformer, data: D): FirFunction

    override fun  transformReceiverTypeRef(transformer: FirTransformer, data: D): FirFunction

    override fun  transformTypeParameters(transformer: FirTransformer, data: D): FirFunction

    fun  transformValueParameters(transformer: FirTransformer, data: D): FirFunction

    fun  transformBody(transformer: FirTransformer, data: D): FirFunction
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy