
org.jetbrains.kotlin.fir.declarations.FirCallableDeclaration.kt Maven / Gradle / Ivy
/*
* Copyright 2000-2018 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.VisitedSupertype
import org.jetbrains.kotlin.fir.symbols.FirSymbolOwner
import org.jetbrains.kotlin.fir.symbols.impl.FirCallableSymbol
import org.jetbrains.kotlin.fir.types.FirTypeRef
import org.jetbrains.kotlin.fir.visitors.FirVisitor
// Good name needed (something with receiver, type parameters, return type, and name)
interface FirCallableDeclaration> :
@VisitedSupertype FirDeclaration,
FirTypedDeclaration, FirSymbolOwner {
override val symbol: FirCallableSymbol
val receiverTypeRef: FirTypeRef?
override fun accept(visitor: FirVisitor, data: D): R =
visitor.visitCallableDeclaration(this, data)
override fun acceptChildren(visitor: FirVisitor, data: D) {
receiverTypeRef?.accept(visitor, data)
super.acceptChildren(visitor, data)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy