rename PSI classes according to current terminology:

KtMultiDeclaration(Entry) -> KtDestructuringDeclaration(Entry)
KtFunctionLiteralExpression -> KtLambdaExpression
KtFunctionLiteralArgument -> KtLambdaArgument
KtDelegationSpecifierList -> KtSuperTypeList
KtDelegationSpecifier -> KtSuperTypeListEntry
KtDelegatorToSuperClass -> KtSuperTypeEntry
KtDelegatorToSuperCall -> KtSuperTypeCallEntry
KtDelegationByExpressionSpecifier ->KtDelegatedSuperTypeEntry
This commit is contained in:
Dmitry Jemerov
2015-12-09 19:30:38 +01:00
parent ef4b3c99f4
commit 009e3f9cd7
302 changed files with 1375 additions and 1391 deletions
@@ -177,7 +177,7 @@ public class ShadowedDeclarationsFilter(
override fun getValueArguments() = arguments
override fun getFunctionLiteralArguments() = emptyList<FunctionLiteralArgument>()
override fun getFunctionLiteralArguments() = emptyList<LambdaArgument>()
override fun getTypeArguments() = emptyList<KtTypeProjection>()
@@ -20,7 +20,7 @@ import org.jetbrains.kotlin.name.Name
import org.jetbrains.kotlin.psi.*
public fun KtFunctionLiteral.findLabelAndCall(): Pair<Name?, KtCallExpression?> {
val literalParent = (this.getParent() as KtFunctionLiteralExpression).getParent()
val literalParent = (this.getParent() as KtLambdaExpression).getParent()
fun KtValueArgument.callExpression(): KtCallExpression? {
val parent = getParent()
@@ -90,7 +90,7 @@ class PartialBodyResolveFilter(
statementMarks.mark(statement, MarkLevel.NEED_REFERENCE_RESOLVE)
}
}
else if (statement is KtMultiDeclaration) {
else if (statement is KtDestructuringDeclaration) {
if (statement.getEntries().any {
val name = it.getName()
name != null && nameFilter(name)