renaming KtLightParameter to KtLightParameterImpl

This commit is contained in:
Nicolay Mitropolsky
2019-07-22 15:04:38 +03:00
parent 4a20a440a7
commit 8982a49dcb
2 changed files with 3 additions and 3 deletions
@@ -61,7 +61,7 @@ open class KtLightMethodImpl protected constructor(
protected open fun buildParametersForList(): List<PsiParameter> { protected open fun buildParametersForList(): List<PsiParameter> {
val clsParameters by lazyPub { clsDelegate.parameterList.parameters } val clsParameters by lazyPub { clsDelegate.parameterList.parameters }
return (dummyDelegate?.parameterList?.parameters ?: clsParameters).mapIndexed { index, dummyParameter -> return (dummyDelegate?.parameterList?.parameters ?: clsParameters).mapIndexed { index, dummyParameter ->
KtLightParameter( KtLightParameterImpl(
dummyParameter, dummyParameter,
{ clsParameters.getOrNull(index) }, { clsParameters.getOrNull(index) },
index, index,
@@ -22,7 +22,7 @@ import org.jetbrains.kotlin.psi.KtProperty
import org.jetbrains.kotlin.psi.KtPropertyAccessor import org.jetbrains.kotlin.psi.KtPropertyAccessor
import org.jetbrains.kotlin.psi.psiUtil.isExtensionDeclaration import org.jetbrains.kotlin.psi.psiUtil.isExtensionDeclaration
class KtLightParameter( class KtLightParameterImpl(
private val dummyDelegate: PsiParameter, private val dummyDelegate: PsiParameter,
private val clsDelegateProvider: () -> PsiParameter?, private val clsDelegateProvider: () -> PsiParameter?,
private val index: Int, private val index: Int,
@@ -108,7 +108,7 @@ class KtLightParameter(
if (kotlinOrigin?.isEquivalentTo(another) == true) return@Computable true if (kotlinOrigin?.isEquivalentTo(another) == true) return@Computable true
} }
if (another is KtLightParameter) { if (another is KtLightParameterImpl) {
return@Computable kotlinOrigin != null && kotlinOrigin == another.kotlinOrigin && clsDelegate == another.clsDelegate return@Computable kotlinOrigin != null && kotlinOrigin == another.kotlinOrigin && clsDelegate == another.clsDelegate
} }