PY-61639 Lift PyFile.getTopLevelAttributes(), PyFile.findTopLevelAttribute() to PyAstFile

GitOrigin-RevId: 373accde23bb2c55d1d23266da7874e34da96ea3
This commit is contained in:
Petr Golubev
2024-01-24 01:41:13 +01:00
committed by intellij-monorepo-bot
parent f818966298
commit c90db007c0
5 changed files with 92 additions and 54 deletions

View File

@@ -222,11 +222,6 @@ public class PyFileImpl extends PsiFileBase implements PyFile, PyExpression {
return findByName(name, getTopLevelClasses());
}
@Override
public PyTargetExpression findTopLevelAttribute(@NotNull String name) {
return findByName(name, getTopLevelAttributes());
}
@Override
public @NotNull List<PyTypeAliasStatement> getTypeAliasStatements() {
return PyPsiUtils.collectStubChildren(this, getGreenStub(), PyTypeAliasStatement.class);