Implement "Safe Delete" refactoring for properties

This commit is contained in:
Alexey Sedunov
2013-07-19 19:01:34 +04:00
parent 9c60637ef3
commit 639336b2f5
109 changed files with 1287 additions and 85 deletions
@@ -910,4 +910,11 @@ public class JetPsiUtil {
return (names.size() > partIndex) ? names.get(partIndex) : header.getLastPartExpression();
}
public static PsiElement ascendIfPropertyAccessor(PsiElement element) {
if (element instanceof JetPropertyAccessor) {
return element.getParent();
}
return element;
}
}