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

org.jetbrains.kotlin.analysis.api.calls.KaCall.kt Maven / Gradle / Ivy

/*
 * Copyright 2010-2024 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.analysis.api.calls

import org.jetbrains.kotlin.analysis.api.resolution.KaAnnotationCall
import org.jetbrains.kotlin.analysis.api.resolution.KaApplicableCallCandidateInfo
import org.jetbrains.kotlin.analysis.api.resolution.KaCall
import org.jetbrains.kotlin.analysis.api.resolution.KaCallCandidateInfo
import org.jetbrains.kotlin.analysis.api.resolution.KaCallInfo
import org.jetbrains.kotlin.analysis.api.resolution.KaCallableMemberCall
import org.jetbrains.kotlin.analysis.api.resolution.KaCompoundAccessCall
import org.jetbrains.kotlin.analysis.api.resolution.KaCompoundArrayAccessCall
import org.jetbrains.kotlin.analysis.api.resolution.KaCompoundOperation
import org.jetbrains.kotlin.analysis.api.resolution.KaCompoundVariableAccessCall
import org.jetbrains.kotlin.analysis.api.resolution.KaDelegatedConstructorCall
import org.jetbrains.kotlin.analysis.api.resolution.KaErrorCallInfo
import org.jetbrains.kotlin.analysis.api.resolution.KaExplicitReceiverValue
import org.jetbrains.kotlin.analysis.api.resolution.KaFunctionCall
import org.jetbrains.kotlin.analysis.api.resolution.KaImplicitReceiverValue
import org.jetbrains.kotlin.analysis.api.resolution.KaInapplicableCallCandidateInfo
import org.jetbrains.kotlin.analysis.api.resolution.KaPartiallyAppliedFunctionSymbol
import org.jetbrains.kotlin.analysis.api.resolution.KaPartiallyAppliedSymbol
import org.jetbrains.kotlin.analysis.api.resolution.KaPartiallyAppliedVariableSymbol
import org.jetbrains.kotlin.analysis.api.resolution.KaReceiverValue
import org.jetbrains.kotlin.analysis.api.resolution.KaSimpleFunctionCall
import org.jetbrains.kotlin.analysis.api.resolution.KaSimpleVariableAccess
import org.jetbrains.kotlin.analysis.api.resolution.KaSimpleVariableAccessCall
import org.jetbrains.kotlin.analysis.api.resolution.KaSmartCastedReceiverValue
import org.jetbrains.kotlin.analysis.api.resolution.KaSuccessCallInfo
import org.jetbrains.kotlin.analysis.api.resolution.KaVariableAccessCall
import org.jetbrains.kotlin.analysis.api.resolution.calls
import org.jetbrains.kotlin.analysis.api.resolution.singleCallOrNull
import org.jetbrains.kotlin.analysis.api.resolution.singleConstructorCallOrNull
import org.jetbrains.kotlin.analysis.api.resolution.singleFunctionCallOrNull
import org.jetbrains.kotlin.analysis.api.resolution.singleVariableAccessCall
import org.jetbrains.kotlin.analysis.api.resolution.successfulCallOrNull
import org.jetbrains.kotlin.analysis.api.resolution.successfulConstructorCallOrNull
import org.jetbrains.kotlin.analysis.api.resolution.successfulFunctionCallOrNull
import org.jetbrains.kotlin.analysis.api.resolution.successfulVariableAccessCall
import org.jetbrains.kotlin.analysis.api.resolution.symbol
import org.jetbrains.kotlin.analysis.api.signatures.KaCallableSignature
import org.jetbrains.kotlin.analysis.api.symbols.*

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public typealias KaCallInfo = KaCallInfo

@Deprecated("Use 'KaCallInfo' instead", ReplaceWith("KaCallInfo"))
public typealias KtCallInfo = KaCallInfo

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public typealias KaSuccessCallInfo = KaSuccessCallInfo

@Deprecated("Use 'KaSuccessCallInfo' instead", ReplaceWith("KaSuccessCallInfo"))
public typealias KtSuccessCallInfo = KaSuccessCallInfo

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public typealias KaErrorCallInfo = KaErrorCallInfo

@Deprecated("Use 'KaErrorCallInfo' instead", ReplaceWith("KaErrorCallInfo"))
public typealias KtErrorCallInfo = KaErrorCallInfo

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public val KaCallInfo.calls: List get() = calls

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public inline fun  KaCallInfo.singleCallOrNull(): T? = singleCallOrNull()

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public fun KaCallInfo.singleFunctionCallOrNull(): KaFunctionCall<*>? = singleFunctionCallOrNull()

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public fun KaCallInfo.singleVariableAccessCall(): KaVariableAccessCall? = singleVariableAccessCall()

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public fun KaCallInfo.singleConstructorCallOrNull(): KaFunctionCall? = singleConstructorCallOrNull()

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public inline fun  KaCallInfo.successfulCallOrNull(): T? = successfulCallOrNull()

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public fun KaCallInfo.successfulFunctionCallOrNull(): KaFunctionCall<*>? = successfulFunctionCallOrNull()

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public fun KaCallInfo.successfulVariableAccessCall(): KaVariableAccessCall? = successfulVariableAccessCall()

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public fun KaCallInfo.successfulConstructorCallOrNull(): KaFunctionCall? = successfulConstructorCallOrNull()

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public typealias KaCallCandidateInfo = KaCallCandidateInfo

@Deprecated("Use 'KaCallCandidateInfo' instead", ReplaceWith("KaCallCandidateInfo"))
public typealias KtCallCandidateInfo = KaCallCandidateInfo

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public typealias KaApplicableCallCandidateInfo = KaApplicableCallCandidateInfo

@Deprecated("Use 'KaApplicableCallCandidateInfo' instead", ReplaceWith("KaApplicableCallCandidateInfo"))
public typealias KtApplicableCallCandidateInfo = KaApplicableCallCandidateInfo

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public typealias KaInapplicableCallCandidateInfo = KaInapplicableCallCandidateInfo

@Deprecated("Use 'KaInapplicableCallCandidateInfo' instead", ReplaceWith("KaInapplicableCallCandidateInfo"))
public typealias KtInapplicableCallCandidateInfo = KaInapplicableCallCandidateInfo

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public typealias KaCall = KaCall

@Deprecated("Use 'KaCall' instead", ReplaceWith("KaCall"))
public typealias KtCall = KaCall

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public typealias KaPartiallyAppliedSymbol = KaPartiallyAppliedSymbol

@Deprecated("Use 'KaPartiallyAppliedSymbol' instead", ReplaceWith("KaPartiallyAppliedSymbol"))
public typealias KtPartiallyAppliedSymbol = KaPartiallyAppliedSymbol

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public val > KaPartiallyAppliedSymbol.symbol: S get() = symbol

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public typealias KaCallableMemberCall = KaCallableMemberCall

@Deprecated("Use 'KaCallableMemberCall' instead", ReplaceWith("KaCallableMemberCall"))
public typealias KtCallableMemberCall = KaCallableMemberCall

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public val > KaCallableMemberCall.symbol: S get() = symbol

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public typealias KaFunctionCall = KaFunctionCall

@Deprecated("Use 'KaFunctionCall' instead", ReplaceWith("KaFunctionCall"))
public typealias KtFunctionCall = KaFunctionCall

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public typealias KaPartiallyAppliedFunctionSymbol = KaPartiallyAppliedFunctionSymbol

@Deprecated("Use 'KaPartiallyAppliedFunctionSymbol' instead", ReplaceWith("KaPartiallyAppliedFunctionSymbol"))
public typealias KtPartiallyAppliedFunctionSymbol = KaPartiallyAppliedFunctionSymbol

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public typealias KaSimpleFunctionCall = KaSimpleFunctionCall

@Deprecated("Use 'KaSimpleFunctionCall' instead", ReplaceWith("KaSimpleFunctionCall"))
public typealias KtSimpleFunctionCall = KaSimpleFunctionCall

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public typealias KaAnnotationCall = KaAnnotationCall

@Deprecated("Use 'KaAnnotationCall' instead", ReplaceWith("KaAnnotationCall"))
public typealias KtAnnotationCall = KaAnnotationCall

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public typealias KaDelegatedConstructorCall = KaDelegatedConstructorCall

@Deprecated("Use 'KaDelegatedConstructorCall' instead", ReplaceWith("KaDelegatedConstructorCall"))
public typealias KtDelegatedConstructorCall = KaDelegatedConstructorCall

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public typealias KaVariableAccessCall = KaVariableAccessCall

@Deprecated("Use 'KaVariableAccessCall' instead", ReplaceWith("KaVariableAccessCall"))
public typealias KtVariableAccessCall = KaVariableAccessCall

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public typealias KaPartiallyAppliedVariableSymbol = KaPartiallyAppliedVariableSymbol

@Deprecated("Use 'KaPartiallyAppliedVariableSymbol' instead", ReplaceWith("KaPartiallyAppliedVariableSymbol"))
public typealias KtPartiallyAppliedVariableSymbol = KaPartiallyAppliedVariableSymbol

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public typealias KaSimpleVariableAccessCall = KaSimpleVariableAccessCall

@Deprecated("Use 'KaSimpleVariableAccessCall' instead", ReplaceWith("KaSimpleVariableAccessCall"))
public typealias KtSimpleVariableAccessCall = KaSimpleVariableAccessCall

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public typealias KaSimpleVariableAccess = KaSimpleVariableAccess

@Deprecated("Use 'KaSimpleVariableAccess' instead", ReplaceWith("KaSimpleVariableAccess"))
public typealias KtSimpleVariableAccess = KaSimpleVariableAccess

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public typealias KaCompoundAccessCall = KaCompoundAccessCall

@Deprecated("Use 'KaCompoundAccessCall' instead", ReplaceWith("KaCompoundAccessCall"))
public typealias KtCompoundAccessCall = KaCompoundAccessCall

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public typealias KaCompoundVariableAccessCall = KaCompoundVariableAccessCall

@Deprecated("Use 'KaCompoundVariableAccessCall' instead", ReplaceWith("KaCompoundVariableAccessCall"))
public typealias KtCompoundVariableAccessCall = KaCompoundVariableAccessCall

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public typealias KaCompoundArrayAccessCall = KaCompoundArrayAccessCall

@Deprecated("Use 'KaCompoundArrayAccessCall' instead", ReplaceWith("KaCompoundArrayAccessCall"))
public typealias KtCompoundArrayAccessCall = KaCompoundArrayAccessCall

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public typealias KaCompoundAccess = KaCompoundOperation

@Deprecated("Use 'KaCompoundAccess' instead", ReplaceWith("KaCompoundAccess"))
public typealias KtCompoundAccess = KaCompoundOperation

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public typealias KaReceiverValue = KaReceiverValue

@Deprecated("Use 'KaReceiverValue' instead", ReplaceWith("KaReceiverValue"))
public typealias KtReceiverValue = KaReceiverValue

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public typealias KaExplicitReceiverValue = KaExplicitReceiverValue

@Deprecated("Use 'KaExplicitReceiverValue' instead", ReplaceWith("KaExplicitReceiverValue"))
public typealias KtExplicitReceiverValue = KaExplicitReceiverValue

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public typealias KaImplicitReceiverValue = KaImplicitReceiverValue

@Deprecated("Use 'KaImplicitReceiverValue' instead", ReplaceWith("KaImplicitReceiverValue"))
public typealias KtImplicitReceiverValue = KaImplicitReceiverValue

@Deprecated(
    "The API has been moved into `org.jetbrains.kotlin.analysis.api.resolution` package",
    level = DeprecationLevel.HIDDEN,
)
public typealias KaSmartCastedReceiverValue = KaSmartCastedReceiverValue

@Deprecated("Use 'KaSmartCastedReceiverValue' instead", ReplaceWith("KaSmartCastedReceiverValue"))
public typealias KtSmartCastedReceiverValue = KaSmartCastedReceiverValue