Search in sources :

Example 1 with ClsParameterImpl

use of com.intellij.psi.impl.compiled.ClsParameterImpl in project kotlin by JetBrains.

the class JavaValueParameterImpl method getName.

@Override
@Nullable
public Name getName() {
    PsiParameter psi = getPsi();
    if (psi instanceof ClsParameterImpl && ((ClsParameterImpl) psi).isAutoGeneratedName()) {
        return null;
    }
    String name = psi.getName();
    return name == null ? null : Name.identifier(name);
}
Also used : PsiParameter(com.intellij.psi.PsiParameter) ClsParameterImpl(com.intellij.psi.impl.compiled.ClsParameterImpl) Nullable(org.jetbrains.annotations.Nullable)

Aggregations

PsiParameter (com.intellij.psi.PsiParameter)1 ClsParameterImpl (com.intellij.psi.impl.compiled.ClsParameterImpl)1 Nullable (org.jetbrains.annotations.Nullable)1