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

Unified Diff: runtime/vm/ast_printer.cc

Issue 10909098: Fix Token::kAS and its printing according to Regis' comment. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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 | « no previous file | runtime/vm/token.h » ('j') | runtime/vm/token.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ast_printer.cc
===================================================================
--- runtime/vm/ast_printer.cc (revision 11960)
+++ runtime/vm/ast_printer.cc (working copy)
@@ -157,7 +157,13 @@
void AstPrinter::VisitComparisonNode(ComparisonNode* node) {
- VisitGenericAstNode(node);
+ if (node->kind() == Token::kAS) {
+ OS::Print("(as ");
+ node->VisitChildren(this);
+ OS::Print(")");
+ } else {
+ VisitGenericAstNode(node);
+ }
}
« no previous file with comments | « no previous file | runtime/vm/token.h » ('j') | runtime/vm/token.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698