getting rid of ClsFileImpl.setPhysical

patch by Roman Shevchenko
This commit is contained in:
Pavel V. Talanov
2016-01-11 16:29:19 +03:00
parent 0274ce4619
commit 41a8ded182
2 changed files with 8 additions and 3 deletions
@@ -143,9 +143,11 @@ abstract class LightClassDataProvider<T : WithFileStubAndExtraDiagnostics>(
override fun getPackageName(): String {
return packageFqName.asString()
}
}
fakeFile.isPhysical = false
override fun isPhysical(): Boolean {
return false
}
}
javaFileStub.psi = fakeFile
return javaFileStub
@@ -345,8 +345,11 @@ class IDELightClassGenerationSupport(private val project: Project) : LightClassG
override fun getMirror(): PsiElement {
return mirrorFile
}
override fun isPhysical(): Boolean {
return false
}
}
fakeFile.isPhysical = false
javaFileStub.psi = fakeFile
return fakeFile.classes.single() as ClsClassImpl
}