Refactored reference shortening utility (added expression references shortening and rewritten to Kotlin)
This commit is contained in:
@@ -37,6 +37,7 @@ public class JetTypeArgumentList extends JetElementImpl {
|
||||
return visitor.visitTypeArgumentList(this, data);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public List<JetTypeProjection> getArguments() {
|
||||
return findChildrenByType(JetNodeTypes.TYPE_PROJECTION);
|
||||
}
|
||||
|
||||
+1
-1
@@ -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()!!)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user