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

Unified Diff: dart/lib/compiler/implementation/ssa/builder.dart

Issue 10870066: Support unary - operator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix unparser to handle that negate is no longer a keyword. 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
Index: dart/lib/compiler/implementation/ssa/builder.dart
diff --git a/dart/lib/compiler/implementation/ssa/builder.dart b/dart/lib/compiler/implementation/ssa/builder.dart
index 93d83a5dd78b566ace22ff9ddf3636c648c07274..3c329b1d1c256839922055dd52ea213f060a402c 100644
--- a/dart/lib/compiler/implementation/ssa/builder.dart
+++ b/dart/lib/compiler/implementation/ssa/builder.dart
@@ -2192,15 +2192,12 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
bool isNotEquals = false;
if (node.isIndex && !node.arguments.tail.isEmpty()) {
dartMethodName = Elements.constructOperatorName(
- const SourceString('operator'),
- const SourceString('[]='));
+ const SourceString('[]='), false);
} else if (node.selector.asOperator() != null) {
SourceString name = node.selector.asIdentifier().source;
isNotEquals = name.stringValue === '!=';
dartMethodName = Elements.constructOperatorName(
- const SourceString('operator'),
- name,
- node.argumentsNode is Prefix);
+ name, node.argumentsNode is Prefix);
} else {
dartMethodName = node.selector.asIdentifier().source;
}
« no previous file with comments | « dart/lib/compiler/implementation/scanner/token.dart ('k') | dart/lib/compiler/implementation/tree/unparser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698