mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Don't use redundant isStarImport in from import statement stub
We now store stubs for star import elements so having this flag in the stub for PyFromImportStatement became redundant.
This commit is contained in:
@@ -26,6 +26,12 @@ import org.jetbrains.annotations.Nullable;
|
||||
public interface PyFromImportStatementStub extends StubElement<PyFromImportStatement> {
|
||||
@Nullable
|
||||
QualifiedName getImportSourceQName();
|
||||
|
||||
/**
|
||||
* @deprecated Use stub-based {@link PyFromImportStatement#getStarImportElement()} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
boolean isStarImport();
|
||||
|
||||
int getRelativeLevel();
|
||||
}
|
||||
|
||||
@@ -64,10 +64,6 @@ public class PyFromImportStatementImpl extends PyBaseElementImpl<PyFromImportSta
|
||||
}
|
||||
|
||||
public boolean isStarImport() {
|
||||
final PyFromImportStatementStub stub = getStub();
|
||||
if (stub != null) {
|
||||
return stub.isStarImport();
|
||||
}
|
||||
return getStarImportElement() != null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user