[FIR] Rename toResolvedFunctionSymbol to toResolvedNamedFunctionSymbol
This commit is contained in:
committed by
Space Team
parent
61d2e338a4
commit
487c3e80bb
@@ -54,7 +54,7 @@ inline val FirCall.dynamicVarargArguments: List<FirExpression>?
|
||||
get() = dynamicVararg?.arguments
|
||||
|
||||
inline val FirFunctionCall.isCalleeDynamic: Boolean
|
||||
get() = calleeReference.toResolvedFunctionSymbol()?.origin == FirDeclarationOrigin.DynamicScope
|
||||
get() = calleeReference.toResolvedNamedFunctionSymbol()?.origin == FirDeclarationOrigin.DynamicScope
|
||||
|
||||
inline val FirCall.resolvedArgumentMapping: LinkedHashMap<FirExpression, FirValueParameter>?
|
||||
get() = when (val argumentList = argumentList) {
|
||||
@@ -178,7 +178,7 @@ val FirQualifiedAccessExpression.allReceiverExpressions: List<FirExpression>
|
||||
}
|
||||
|
||||
inline fun FirFunctionCall.forAllReifiedTypeParameters(block: (ConeKotlinType, FirTypeProjectionWithVariance) -> Unit) {
|
||||
val functionSymbol = calleeReference.toResolvedFunctionSymbol() ?: return
|
||||
val functionSymbol = calleeReference.toResolvedNamedFunctionSymbol() ?: return
|
||||
|
||||
for ((typeParameterSymbol, typeArgument) in functionSymbol.typeParameterSymbols.zip(typeArguments)) {
|
||||
if (typeParameterSymbol.isReified && typeArgument is FirTypeProjectionWithVariance) {
|
||||
|
||||
@@ -48,7 +48,7 @@ fun FirReference.toResolvedValueParameterSymbol(discardErrorReference: Boolean =
|
||||
return this.toResolvedSymbol<FirValueParameterSymbol>(discardErrorReference)
|
||||
}
|
||||
|
||||
fun FirReference.toResolvedFunctionSymbol(discardErrorReference: Boolean = false): FirNamedFunctionSymbol? {
|
||||
fun FirReference.toResolvedNamedFunctionSymbol(discardErrorReference: Boolean = false): FirNamedFunctionSymbol? {
|
||||
return this.toResolvedSymbol<FirNamedFunctionSymbol>(discardErrorReference)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user