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

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: Update comments (according to my dictionary whitelist is a word). 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 9a7b131451c4d3ad9a73cf798d746d5c5c3e407a..fb2a8aa4d234dd8cb163f0dbb3e9a7a4d5ca0e39 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 reportHint(Spannable node, MessageKind errorCode,
+ [Map arguments = const {}]) {
+ reportMessage(spanFromSpannable(node),
+ errorCode.error(arguments),
+ api.Diagnostic.HINT);
+ }
+
void reportInternalError(Spannable node, String message) {
reportMessage(spanFromSpannable(node),
MessageKind.GENERIC.error({'text': message}),

Powered by Google App Engine
This is Rietveld 408576698