Provide proxy for deprecated org.jetbrains.kotlin.resolve.calls.callUtil.getValueArgumentForExpression
This commit is contained in:
committed by
TeamCityServer
parent
ee65026866
commit
6ee1599efa
@@ -15,6 +15,7 @@ import org.jetbrains.kotlin.resolve.calls.util.getCall
|
||||
import org.jetbrains.kotlin.resolve.calls.util.getType
|
||||
import org.jetbrains.kotlin.resolve.calls.util.getCalleeExpressionIfAny
|
||||
import org.jetbrains.kotlin.resolve.calls.util.createLookupLocation
|
||||
import org.jetbrains.kotlin.resolve.calls.util.getValueArgumentForExpression
|
||||
import org.jetbrains.kotlin.types.KotlinType
|
||||
|
||||
@Deprecated(
|
||||
@@ -65,3 +66,10 @@ fun Call.createLookupLocation(): KotlinLookupLocation = createLookupLocation()
|
||||
level = DeprecationLevel.ERROR
|
||||
)
|
||||
fun KtExpression.createLookupLocation(): KotlinLookupLocation? = createLookupLocation()
|
||||
|
||||
@Deprecated(
|
||||
"Use org.jetbrains.kotlin.resolve.calls.util.getValueArgumentForExpression instead.",
|
||||
ReplaceWith("getValueArgumentForExpression", "org.jetbrains.kotlin.resolve.calls.util.getValueArgumentForExpression"),
|
||||
level = DeprecationLevel.ERROR
|
||||
)
|
||||
fun Call.getValueArgumentForExpression(expression: KtExpression): ValueArgument? = getValueArgumentForExpression(expression)
|
||||
|
||||
Reference in New Issue
Block a user