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

Unified Diff: dart/frog/leg/tree/visitors.dart

Issue 8660004: Parse parenthesized expressions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: frogsh Created 9 years, 1 month 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 | « dart/frog/leg/tree/unparser.dart ('k') | dart/frog/leg/typechecker.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/leg/tree/visitors.dart
diff --git a/dart/frog/leg/tree/visitors.dart b/dart/frog/leg/tree/visitors.dart
index 343f030d3b60f468a7f124ca3192a979e82c47e3..6d11b1f990757f80c400d371ed21da58bc5cb6eb 100644
--- a/dart/frog/leg/tree/visitors.dart
+++ b/dart/frog/leg/tree/visitors.dart
@@ -24,6 +24,9 @@ class AbstractVisitor<R> implements Visitor<R> {
R visitNewExpression(NewExpression node) => visitExpression(node);
R visitNodeList(NodeList node) => visitNode(node);
R visitOperator(Operator node) => visitIdentifier(node);
+ R visitParenthesizedExpression(ParenthesizedExpression node) {
+ return visitExpression(node);
+ }
R visitPostfix(Postfix node) => visitNodeList(node);
R visitPrefix(Prefix node) => visitNodeList(node);
R visitReturn(Return node) => visitStatement(node);
« no previous file with comments | « dart/frog/leg/tree/unparser.dart ('k') | dart/frog/leg/typechecker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698