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

Unified Diff: utils/dartdoc/dartdoc.dart

Issue 9166002: Display negate operators correctly in dartdoc. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/dartdoc/dartdoc.dart
diff --git a/utils/dartdoc/dartdoc.dart b/utils/dartdoc/dartdoc.dart
index 4e0f7a6f2cddf29311041df15562cc39ddec25f8..42040dcbddd7ba7c6c3a40b5017db7e80c031200 100644
--- a/utils/dartdoc/dartdoc.dart
+++ b/utils/dartdoc/dartdoc.dart
@@ -520,6 +520,9 @@ class Dartdoc {
} else if (name.startsWith('set:')) {
// Setter.
name = 'set ${name.substring(4)}';
+ } else if (name == ':negate') {
+ // Dart uses 'negate' for prefix negate operators, not '!'.
+ name = 'operator negate';
} else {
// See if it's an operator.
name = TokenKind.rawOperatorFromMethod(name);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698