Fixed EA-65709

This commit is contained in:
Valentin Kipyatkov
2015-06-01 22:01:32 +03:00
parent 83f04501be
commit 142ee0ce70
@@ -110,7 +110,7 @@ class CodeBuilder(private val topElement: PsiElement?) {
}
}
if (topElement == null || element.prototypes!!.isEmpty()) {
if (topElement == null || topElement is PsiCompiledElement || element.prototypes!!.isEmpty()) {
element.generateCode(this)
element.postGenerateCode(this)
return this