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

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

Issue 10695171: dart2dart fix "get" appearing before type in typed getter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix unparser instead 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/dart_backend/emitter.dart ('k') | tests/compiler/dart2js/unparser_test.dart » ('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 663872f3e2164fa90b58bbf7b38374d47806546d..78d11c4ae490fec06b1bffc90f0f1216fae37540 100644
--- a/lib/compiler/implementation/tree/unparser.dart
+++ b/lib/compiler/implementation/tree/unparser.dart
@@ -86,6 +86,10 @@ class Unparser implements Visitor {
visit(node.returnType);
sb.add(' ');
}
+ if (node.getOrSet !== null) {
+ add(node.getOrSet.value);
+ sb.add(' ');
+ }
// TODO(antonm): that's a workaround as currently FunctionExpression
// names are modelled with Send and it emits operator[] as only
// operator, without [] which are expected to be emitted with
« no previous file with comments | « lib/compiler/implementation/dart_backend/emitter.dart ('k') | tests/compiler/dart2js/unparser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698