mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
[extract method] IDEA-262123: disable extract method if there is a variable to return and a continue/break statement
GitOrigin-RevId: fc4b2f17bd1359740f8c2bde3948fe2b960a873e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f70adbac24
commit
0f55d369e4
@@ -47,6 +47,7 @@ fun findExtractOptions(elements: List<PsiElement>, inferNullity: Boolean = true)
|
||||
variableData.nullability != Nullability.NOT_NULL && flowOutput is ConditionalFlow -> null
|
||||
flowOutput is ConditionalFlow && ! canExtractStatementsFromScope(flowOutput.statements, elements) -> null
|
||||
flowOutput is ConditionalFlow -> variableData.copy(nullability = Nullability.NULLABLE)
|
||||
flowOutput is UnconditionalFlow -> null
|
||||
else -> variableData
|
||||
}
|
||||
else -> findFlowData(analyzer, flowOutput)
|
||||
|
||||
Reference in New Issue
Block a user