use of com.jetbrains.python.psi.PyFinallyPart in project intellij-community by JetBrains.
the class PyWithTryFinallySurrounder method getResultRange.
@Override
protected TextRange getResultRange(PyTryExceptStatement tryStatement) {
final PyFinallyPart finallyPart = tryStatement.getFinallyPart();
assert finallyPart != null;
final PyStatementList statementList = finallyPart.getStatementList();
return statementList.getTextRange();
}
Aggregations