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

Side by Side 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 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « dart/frog/leg/tree/visitors.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 class TypeCheckerTask extends CompilerTask { 5 class TypeCheckerTask extends CompilerTask {
6 TypeCheckerTask(Compiler compiler) : types = new Types(), super(compiler); 6 TypeCheckerTask(Compiler compiler) : types = new Types(), super(compiler);
7 String get name() => "Type checker"; 7 String get name() => "Type checker";
8 Types types; 8 Types types;
9 9
10 void check(Node tree, Map<Node, Element> elements) { 10 void check(Node tree, Map<Node, Element> elements) {
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 checkAssignable(node, type, initializer); 378 checkAssignable(node, type, initializer);
379 } 379 }
380 } 380 }
381 return null; 381 return null;
382 } 382 }
383 383
384 Type visitWhile(While node) { 384 Type visitWhile(While node) {
385 checkCondition(node.condition); 385 checkCondition(node.condition);
386 type(node.body); 386 type(node.body);
387 } 387 }
388
389 Type visitParenthesizedExpression(ParenthesizedExpression node) {
390 return type(node.expression);
391 }
388 } 392 }
OLDNEW
« 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