PyStatementListContainer extends PyElement, so it can be used in methods like PsiTreeUtil#getParentOfType

This commit is contained in:
Mikhail Golubev
2015-11-09 13:51:11 +03:00
parent 681079f543
commit 07cfbebd4a
2 changed files with 2 additions and 2 deletions
@@ -20,7 +20,7 @@ import org.jetbrains.annotations.NotNull;
/**
* @author Ilya.Kazakevich
*/
public interface PyStatementListContainer {
public interface PyStatementListContainer extends PyElement {
@NotNull
PyStatementList getStatementList();
}
@@ -20,6 +20,6 @@ package com.jetbrains.python.psi;
* User: dcheryasov
* Date: Mar 16, 2009 4:34:59 AM
*/
public interface PyStatementPart extends PyElement, PyStatementListContainer {
public interface PyStatementPart extends PyStatementListContainer {
PyStatementPart[] EMPTY_ARRAY = new PyStatementPart[0];
}