Clean up the AST pretty printer by adding some missing newlines and

indentation.

Review URL: http://codereview.chromium.org/118234

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2105 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent b918e64d
......@@ -693,10 +693,10 @@ void AstPrinter::PrintLabelsIndented(const char* info, ZoneStringList* labels) {
Print(" ");
}
PrintLabels(labels);
Print("\n");
} else if (info != NULL) {
PrintIndented(info);
}
Print("\n");
}
......@@ -918,9 +918,8 @@ void AstPrinter::VisitLiteral(Literal* node) {
void AstPrinter::VisitRegExpLiteral(RegExpLiteral* node) {
IndentedScope indent("REGEXP LITERAL");
PrintLiteral(node->pattern(), false);
Print(",");
PrintLiteral(node->flags(), false);
PrintLiteralIndented("PATTERN", node->pattern(), false);
PrintLiteralIndented("FLAGS", node->flags(), false);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment