Refactored reference shortening utility (added expression references shortening and rewritten to Kotlin)

This commit is contained in:
Valentin Kipyatkov
2013-12-25 18:40:16 +04:00
parent fa8127d1a0
commit b71020efc5
68 changed files with 646 additions and 133 deletions
@@ -37,6 +37,7 @@ public class JetTypeArgumentList extends JetElementImpl {
return visitor.visitTypeArgumentList(this, data);
}
@NotNull
public List<JetTypeProjection> getArguments() {
return findChildrenByType(JetNodeTypes.TYPE_PROJECTION);
}
@@ -82,7 +82,7 @@ public class KotlinLightMethodForDeclaration(manager: PsiManager, val method: Ps
override fun getParameterList(): PsiParameterList = paramsList.getValue()!!
override fun copy(): PsiElement? {
override fun copy(): PsiElement {
return KotlinLightMethodForDeclaration(getManager()!!, method, jetDeclaration.copy() as JetDeclaration, getContainingClass()!!)
}
}