Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: pkg/compiler/lib/src/dart_backend/backend.dart

Issue 1167353003: Opt-in to generate code for compile-time error. Only supported for SSA. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/dart2js.dart ('k') | pkg/compiler/lib/src/deferred_load.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/dart_backend/backend.dart
diff --git a/pkg/compiler/lib/src/dart_backend/backend.dart b/pkg/compiler/lib/src/dart_backend/backend.dart
index 3f75e35349aed80bf644b3d8305be678d017fb11..717d7a7dadce89071d63253c94cf0301a178702a 100644
--- a/pkg/compiler/lib/src/dart_backend/backend.dart
+++ b/pkg/compiler/lib/src/dart_backend/backend.dart
@@ -49,7 +49,13 @@ class DartBackend extends Backend {
final Set<ClassElement> _userImplementedPlatformClasses =
new Set<ClassElement>();
- bool get canHandleCompilationFailed => false;
+ bool enableCodegenWithErrorsIfSupported(Spannable node) {
+ compiler.reportHint(node,
+ MessageKind.GENERIC,
+ {'text': "Generation of code with compile time errors is not "
+ "supported for dart2dart."});
+ return false;
+ }
/**
* Tells whether it is safe to remove type declarations from variables,
@@ -314,7 +320,7 @@ class DartBackend extends Backend {
}
@override
- bool registerDeferredLoading(Spannable node, Registry registry) {
+ bool enableDeferredLoadingIfSupported(Spannable node, Registry registry) {
// TODO(sigurdm): Implement deferred loading for dart2dart.
compiler.reportWarning(node, MessageKind.DEFERRED_LIBRARY_DART_2_DART);
return false;
« no previous file with comments | « pkg/compiler/lib/src/dart2js.dart ('k') | pkg/compiler/lib/src/deferred_load.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698