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

Unified Diff: src/prettyprinter.cc

Issue 663683006: Implement ES6 Template Literals (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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
Index: src/prettyprinter.cc
diff --git a/src/prettyprinter.cc b/src/prettyprinter.cc
index 1ff2edd2854adbdeab29b753bc3ba1c0119dba60..5246d25f1998f9dfa9c69d816077c326b73cb641 100644
--- a/src/prettyprinter.cc
+++ b/src/prettyprinter.cc
@@ -325,6 +325,9 @@ void PrettyPrinter::VisitLiteral(Literal* node) {
}
+void PrettyPrinter::VisitTemplateLiteral(TemplateLiteral* node) {}
+
+
void PrettyPrinter::VisitRegExpLiteral(RegExpLiteral* node) {
Print(" RegExp(");
PrintLiteral(node->pattern(), false);
@@ -1016,6 +1019,9 @@ void AstPrinter::VisitLiteral(Literal* node) {
}
+void AstPrinter::VisitTemplateLiteral(TemplateLiteral* node) {}
+
+
void AstPrinter::VisitRegExpLiteral(RegExpLiteral* node) {
IndentedScope indent(this, "REGEXP LITERAL");
PrintLiteralIndented("PATTERN", node->pattern(), false);

Powered by Google App Engine
This is Rietveld 408576698