Commit 0d040906 authored by Artem Khvastunov's avatar Artem Khvastunov Committed by intellij-monorepo-bot
Browse files

IDEA-CR-59036: add @JvmDefault to SuggestedRefactoringSupport#hasSyntaxError...

IDEA-CR-59036: add @JvmDefault to SuggestedRefactoringSupport#hasSyntaxError so Java classes are not forced to implement it

(cherry picked from commit 8c7676cb227e8085fe3494fbeb82ce550cba8ea5)

GitOrigin-RevId: 9702c9b5edfcdd9f130216bf24f5f691e49942fe
parent 662727b7
Showing with 1 addition and 0 deletions
+1 -0
......@@ -56,6 +56,7 @@ interface SuggestedRefactoringSupport {
*/
fun nameRange(declaration: PsiElement): TextRange?
@JvmDefault
open fun hasSyntaxError(declaration: PsiElement): Boolean {
val signatureRange = signatureRange(declaration) ?: return true
return declaration.containingFile.hasErrorElementInRange(signatureRange)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment