Index: dart/sdk/lib/_internal/compiler/implementation/compiler.dart |
diff --git a/dart/sdk/lib/_internal/compiler/implementation/compiler.dart b/dart/sdk/lib/_internal/compiler/implementation/compiler.dart |
index 96490f5c03790dbf7f869857c9fc4a0d3e50e52b..a7fe5e7fb79b549bd43a67e4cabef9ada4f85d6f 100644 |
--- a/dart/sdk/lib/_internal/compiler/implementation/compiler.dart |
+++ b/dart/sdk/lib/_internal/compiler/implementation/compiler.dart |
@@ -1155,6 +1155,13 @@ abstract class Compiler implements DiagnosticListener { |
api.Diagnostic.INFO); |
} |
+ void reportLint(Spannable node, MessageKind errorCode, |
+ [Map arguments = const {}]) { |
+ reportMessage(spanFromSpannable(node), |
+ errorCode.error(arguments), |
+ api.Diagnostic.LINT); |
+ } |
+ |
void reportInternalError(Spannable node, String message) { |
reportMessage(spanFromSpannable(node), |
MessageKind.GENERIC.error({'text': message}), |