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

Unified Diff: dart/frog/leg/typechecker.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/visitors.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/leg/typechecker.dart
diff --git a/dart/frog/leg/typechecker.dart b/dart/frog/leg/typechecker.dart
index 33dfff43a6e81b169b77ee43190333d7237f95df..ad56b4968f0f3903d09596bc554b9dd2a4e94511 100644
--- a/dart/frog/leg/typechecker.dart
+++ b/dart/frog/leg/typechecker.dart
@@ -385,4 +385,8 @@ class TypeCheckerVisitor implements Visitor<Type> {
checkCondition(node.condition);
type(node.body);
}
+
+ Type visitParenthesizedExpression(ParenthesizedExpression node) {
+ return type(node.expression);
+ }
}
« no previous file with comments | « dart/frog/leg/tree/visitors.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698