Index: pkg/fletchc/lib/src/fletch_compiler_implementation.dart |
diff --git a/pkg/fletchc/lib/src/fletch_compiler_implementation.dart b/pkg/fletchc/lib/src/fletch_compiler_implementation.dart |
index 9f8591a4fe69a73c4e8e93e21791b3fc205922c4..f581b4fef9fc889b943399888788af7a1b8067f3 100644 |
--- a/pkg/fletchc/lib/src/fletch_compiler_implementation.dart |
+++ b/pkg/fletchc/lib/src/fletch_compiler_implementation.dart |
@@ -42,6 +42,10 @@ import 'package:compiler/src/util/util.dart' show |
import 'fletch_registry.dart' show |
FletchRegistry; |
+import 'please_report_crash.dart' show |
+ crashReportRequested, |
+ requestBugReportOnCompilerCrashMessage; |
+ |
import 'fletch_function_builder.dart'; |
import 'debug_info.dart'; |
import 'find_position_visitor.dart'; |
@@ -275,6 +279,11 @@ class FletchCompilerImplementation extends apiimpl.Compiler { |
} |
} |
+ void pleaseReportCrash() { |
+ crashReportRequested = true; |
+ print(requestBugReportOnCompilerCrashMessage); |
+ } |
+ |
void reportError( |
Spannable node, |
MessageKind messageKind, |