[uast] Improve get arg/param for doc

GitOrigin-RevId: 82afd07f5516ea7293bf4de94496ac26d9fd9354
This commit is contained in:
Bart van Helvert
2023-12-15 11:50:26 +01:00
committed by intellij-monorepo-bot
parent 9fd6f40986
commit 152ffaea42
2 changed files with 4 additions and 0 deletions

View File

@@ -217,6 +217,8 @@ fun getUParentForIdentifier(identifier: PsiElement): UElement? {
}
/**
* @see UCallExpression.getArgumentForParameter
*
* @param arg expression in call arguments list of [this]
* @return parameter that corresponds to the [arg] in declaration to which [this] resolves
*/

View File

@@ -113,6 +113,8 @@ interface UCallExpression : UExpression, UResolvable {
* Provides the ability to match the called method parameters with passed arguments.
* Useful when the order of passed arguments is different to the order of declared parameters (e.g. in Kotlin named arguments).
*
* @see UCallExpression.getParameterForArgument
*
* @param i index of the parameter in the resolved [PsiMethod] declaration
* @return [UExpression] that corresponds to the [i]-th parameter.
* If the given parameter is vararg then the corresponding arguments will be returned wrapped into