PY-34617 Move getTopLevelAttributes(), findTopLevelAttribute() from PyAstFile

GitOrigin-RevId: 226a7e968851ab0c8730bb79ca90d0ed5dcec364
This commit is contained in:
Petr
2024-07-26 19:09:29 +02:00
committed by intellij-monorepo-bot
parent cfa28c0d2a
commit 16a7fb4b3e
4 changed files with 47 additions and 24 deletions

View File

@@ -39,7 +39,6 @@ public interface PyFile extends PyAstFile, PyElement, PsiFile, PyDocStringOwner,
@NotNull
List<PyFunction> getTopLevelFunctions();
@Override
List<PyTargetExpression> getTopLevelAttributes();
@Nullable
@@ -48,11 +47,8 @@ public interface PyFile extends PyAstFile, PyElement, PsiFile, PyDocStringOwner,
@Nullable
PyClass findTopLevelClass(@NonNls @NotNull String name);
@Override
@Nullable
default PyTargetExpression findTopLevelAttribute(@NotNull String name) {
return (PyTargetExpression)PyAstFile.super.findTopLevelAttribute(name);
}
PyTargetExpression findTopLevelAttribute(@NotNull String name);
@NotNull
List<PyTypeAliasStatement> getTypeAliasStatements();