Re-throw ProcessCanceledException

This commit is contained in:
Andrey Breslav
2013-07-11 13:21:19 +04:00
parent bb364cd393
commit b1096b8706
@@ -16,6 +16,7 @@
package org.jetbrains.jet.codegen;
import com.intellij.openapi.progress.ProcessCanceledException;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.jet.codegen.context.ClassContext;
@@ -54,6 +55,9 @@ public class MemberCodegen extends GenerationStateAware {
try {
functionCodegen.gen((JetNamedFunction) functionOrProperty);
}
catch (ProcessCanceledException e) {
throw e;
}
catch (CompilationException e) {
throw e;
}
@@ -65,6 +69,9 @@ public class MemberCodegen extends GenerationStateAware {
try {
new PropertyCodegen(context, classBuilder, functionCodegen, this).gen((JetProperty) functionOrProperty);
}
catch (ProcessCanceledException e) {
throw e;
}
catch (CompilationException e) {
throw e;
}