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

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

Issue 10905203: Allow catch part to be optional as in try {} on T [catch (x[,y])] {} (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 8 years, 3 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/tree/nodes.dart ('k') | tests/co19/co19-dart2js.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 e16c57b9a9f33c232acab4d84c5bc44b77465b21..972e41860049cf9daf5cc6f9f2661af09e011e86 100644
--- a/lib/compiler/implementation/tree/unparser.dart
+++ b/lib/compiler/implementation/tree/unparser.dart
@@ -473,7 +473,7 @@ class Unparser implements Visitor {
}
visitTryStatement(TryStatement node) {
- add(node.tryKeyword.value);
+ addToken(node.tryKeyword);
visit(node.tryBlock);
visit(node.catchBlocks);
if (node.finallyKeyword !== null) {
@@ -495,7 +495,7 @@ class Unparser implements Visitor {
visit(node.type);
sb.add(' ');
}
- add(node.catchKeyword.value);
+ addToken(node.catchKeyword);
visit(node.formals);
visit(node.block);
}
« no previous file with comments | « lib/compiler/implementation/tree/nodes.dart ('k') | tests/co19/co19-dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698