mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 17:20:55 +07:00
PY-81471 Move lang.foldingBuilder to common
GitOrigin-RevId: 3c4f9cc773d14492e9fbf026f0472a908c9262ec
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a21d6414d8
commit
685695021f
@@ -109,7 +109,11 @@ public interface PyFile extends PyAstFile, PyElement, PsiFile, PyDocStringOwner,
|
||||
/**
|
||||
* Returns the sequential list of import statements in the beginning of the file.
|
||||
*/
|
||||
List<PyImportStatementBase> getImportBlock();
|
||||
@Override
|
||||
default List<PyImportStatementBase> getImportBlock() {
|
||||
//noinspection unchecked
|
||||
return (List<PyImportStatementBase>)PyAstFile.super.getImportBlock();
|
||||
}
|
||||
|
||||
@Override
|
||||
default @Nullable PyStringLiteralExpression getDocStringExpression() {
|
||||
|
||||
@@ -45,11 +45,6 @@ public interface PyStringLiteralExpression extends PyAstStringLiteralExpression,
|
||||
|
||||
int valueOffsetToTextOffset(int valueOffset);
|
||||
|
||||
/**
|
||||
* @return true if this element has single string node and its type is {@link com.jetbrains.python.PyTokenTypes#DOCSTRING}
|
||||
*/
|
||||
boolean isDocString();
|
||||
|
||||
/**
|
||||
* Checks whether this literal contains expression fragments. Formatted "f" nodes without any fragments are not considered interpolated.
|
||||
* <p>
|
||||
|
||||
Reference in New Issue
Block a user