File tree Expand file tree Collapse file tree
src/main/kotlin/platform/mixin/handlers/desugar Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,13 +38,13 @@ import com.intellij.util.JavaPsiConstructorUtil
3838
3939object 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 -> {
You can’t perform that action at this time.
0 commit comments