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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/compiler.dart

Issue 17588005: Warn about overriding operator== but not hashCode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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
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}),

Powered by Google App Engine
This is Rietveld 408576698