[java-completion] MissingClassBody: insert body before last error element

The last error element could start a new record (IDEA-290767) or be just unparsed garbage. In any case, adding {} after it would not make anything better, as {} will be unparsed as well.

GitOrigin-RevId: c3ffe1eb107e7c6ee08ff4e867d83323c14e9613
This commit is contained in:
Tagir Valeev
2022-03-22 13:56:17 +07:00
committed by intellij-monorepo-bot
parent 4b8415a4a4
commit 1cbe81473a
4 changed files with 27 additions and 4 deletions

View File

@@ -0,0 +1,7 @@
public class ClassBeforeRecord {
class InnerA<caret>
record InnerB() {
}
}

View File

@@ -0,0 +1,9 @@
public class ClassBeforeRecord {
class InnerA {
<caret>
}
record InnerB() {
}
}