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 20695ceffebc14c01d59cec4d939ddd3eb526578..e33d5ba5bfef258bf0d87b79b26e48a7c234117a 100644 |
--- a/pkg/compiler/lib/src/dart_backend/backend.dart |
+++ b/pkg/compiler/lib/src/dart_backend/backend.dart |
@@ -52,7 +52,8 @@ class DartBackend extends Backend { |
new Set<ClassElement>(); |
bool enableCodegenWithErrorsIfSupported(Spannable node) { |
- compiler.reportHint(node, |
+ compiler.reportHintMessage( |
+ node, |
MessageKind.GENERIC, |
{'text': "Generation of code with compile time errors is not " |
"supported for dart2dart."}); |
@@ -325,7 +326,8 @@ class DartBackend extends Backend { |
@override |
bool enableDeferredLoadingIfSupported(Spannable node, Registry registry) { |
// TODO(sigurdm): Implement deferred loading for dart2dart. |
- compiler.reportWarning(node, MessageKind.DEFERRED_LIBRARY_DART_2_DART); |
+ compiler.reportWarningMessage( |
+ node, MessageKind.DEFERRED_LIBRARY_DART_2_DART); |
return false; |
} |
} |