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

Unified Diff: sdk/lib/_internal/compiler/implementation/tree/prettyprint.dart

Issue 14211008: Add support for rethrow and start treating throw <expr> as an expression. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use ?:. Created 7 years, 8 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: sdk/lib/_internal/compiler/implementation/tree/prettyprint.dart
diff --git a/sdk/lib/_internal/compiler/implementation/tree/prettyprint.dart b/sdk/lib/_internal/compiler/implementation/tree/prettyprint.dart
index 62b67441f631eae14c703d8593a9081efaa35256..9f2cfbf325a8d443ea4b675f766bd8f7f642544b 100644
--- a/sdk/lib/_internal/compiler/implementation/tree/prettyprint.dart
+++ b/sdk/lib/_internal/compiler/implementation/tree/prettyprint.dart
@@ -305,6 +305,10 @@ class PrettyPrinter implements Visitor {
visitNodeWithChildren(node, "ParenthesizedExpression");
}
+ visitRethrow(Rethrow node) {
+ visitNodeWithChildren(node, "Rethrow");
+ }
+
visitReturn(Return node) {
openNode(node, "Return");
visitChildNode(node.expression, "expression");

Powered by Google App Engine
This is Rietveld 408576698