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

Unified Diff: dart/pkg/dartdoc/mirrors/dart2js_mirror.dart

Issue 10892005: Revert "Support unary - operator." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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 | « dart/lib/compiler/implementation/universe.dart ('k') | dart/tests/co19/co19-dart2js.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/pkg/dartdoc/mirrors/dart2js_mirror.dart
diff --git a/dart/pkg/dartdoc/mirrors/dart2js_mirror.dart b/dart/pkg/dartdoc/mirrors/dart2js_mirror.dart
index b7a7d6c7c577ae2d2a3366484a7648a34e148dfa..444a0e16212aa97b4c8f5bb7768c30b430f42bf5 100644
--- a/dart/pkg/dartdoc/mirrors/dart2js_mirror.dart
+++ b/dart/pkg/dartdoc/mirrors/dart2js_mirror.dart
@@ -125,6 +125,7 @@ String _getOperatorFromOperatorName(String name) {
Map<String, String> mapping = const {
'eq': '==',
'not': '~',
+ 'negate': 'negate', // Will change.
'index': '[]',
'indexSet': '[]=',
'mul': '*',
@@ -1243,12 +1244,6 @@ class Dart2JsMethodMirror extends Dart2JsElementMirror
_kind = Dart2JsMethodKind.FACTORY;
// canonical name is TypeName.constructorName
_canonicalName = '$_name.$_constructorName';
- } else if (_name == 'negate') {
- _operatorName = _name;
- _name = 'operator';
- _kind = Dart2JsMethodKind.OPERATOR;
- // canonical name is 'operator operatorName'
- _canonicalName = 'operator $_operatorName';
} else if (_name.startsWith('operator\$')) {
String str = _name.substring(9);
_name = 'operator';
« no previous file with comments | « dart/lib/compiler/implementation/universe.dart ('k') | dart/tests/co19/co19-dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698