Chromium Code Reviews| Index: runtime/vm/ast_printer.cc |
| =================================================================== |
| --- runtime/vm/ast_printer.cc (revision 11962) |
| +++ 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); |
| + } |
| } |