diagnostics

This commit is contained in:
Dmitry Jemerov
2011-05-26 19:37:35 +04:00
parent 2a0567d15b
commit 534232fff0
@@ -56,7 +56,11 @@ public class NamespaceCodegen {
propertyCodegen.gen((JetProperty) declaration, OwnerKind.NAMESPACE);
}
else if (declaration instanceof JetFunction) {
functionCodegen.gen((JetFunction) declaration, OwnerKind.NAMESPACE);
try {
functionCodegen.gen((JetFunction) declaration, OwnerKind.NAMESPACE);
} catch (Exception e) {
throw new RuntimeException("Failed to generate function " + declaration.getName(), e);
}
}
else if (declaration instanceof JetClass) {
classCodegen.generate((JetClass) declaration);