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

Unified Diff: lib/compiler/implementation/tree/unparser.dart

Issue 10836034: Properly parse operator declarations without return type. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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 | « lib/compiler/implementation/scanner/parser.dart ('k') | tests/language/language.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/tree/unparser.dart
diff --git a/lib/compiler/implementation/tree/unparser.dart b/lib/compiler/implementation/tree/unparser.dart
index 9c7a23e6b727aa87a4e0287ae00ff88a23580d25..8a905b214a85f4630052d6b7c32395ea715fb7ee 100644
--- a/lib/compiler/implementation/tree/unparser.dart
+++ b/lib/compiler/implementation/tree/unparser.dart
@@ -107,6 +107,8 @@ class Unparser implements Visitor {
if (!send.isOperator) {
// Looks like a factory method.
sb.add('.');
+ } else {
+ if (send.selector.token.stringValue === 'negate') sb.add(' ');
ahe 2012/08/02 13:39:39 if (send.selector.token.kind === KEYWORD_TOKEN) ..
Anton Muhin 2012/08/06 09:20:09 Done.
}
visit(send.selector);
} else {
@@ -119,7 +121,7 @@ class Unparser implements Visitor {
visitIdentifier(Identifier node) {
String newName = renamer.renameIdentifier(node);
- if (newName == null) {
+ if (newName === null) {
add(node.token.value);
} else {
sb.add(newName);
« no previous file with comments | « lib/compiler/implementation/scanner/parser.dart ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698