Skip to content

Commit 12c8403

Browse files
committed
Fix FieldAssignmentDesugarer
1 parent 215cf26 commit 12c8403

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/kotlin/platform/mixin/handlers/desugar/FieldAssignmentDesugarer.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ import com.intellij.util.JavaPsiConstructorUtil
3838

3939
object FieldAssignmentDesugarer : Desugarer() {
4040
override fun desugar(project: Project, file: PsiJavaFile, context: DesugarContext) {
41-
val staticStatementsToInsertPre = mutableListOf<PsiStatement>()
42-
val staticStatementsToInsertPost = mutableListOf<PsiStatement>()
43-
val nonStaticStatementsToInsert = mutableListOf<PsiStatement>()
44-
var seenStaticInitializer = false
4541
val factory = JavaPsiFacade.getElementFactory(project)
4642

4743
for (aClass in DesugarUtil.allClasses(file)) {
44+
val staticStatementsToInsertPre = mutableListOf<PsiStatement>()
45+
val staticStatementsToInsertPost = mutableListOf<PsiStatement>()
46+
val nonStaticStatementsToInsert = mutableListOf<PsiStatement>()
47+
var seenStaticInitializer = false
4848
for (child in aClass.children) {
4949
when (child) {
5050
is PsiField -> {

0 commit comments

Comments
 (0)