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

Unified Diff: src/ast/prettyprinter.cc

Issue 2703563002: [ESNext] Implement DynamicImportCall (Closed)
Patch Set: rebase Created 3 years, 9 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/ast/prettyprinter.cc
diff --git a/src/ast/prettyprinter.cc b/src/ast/prettyprinter.cc
index 1a1c01602cd058a3ca82c94b2f7d38f7f1461cd8..2d30faf7bca158c77db4335f7d45fe1dd3e161b4 100644
--- a/src/ast/prettyprinter.cc
+++ b/src/ast/prettyprinter.cc
@@ -377,6 +377,12 @@ void CallPrinter::VisitGetIterator(GetIterator* node) {
Print(")");
}
+void CallPrinter::VisitImportCallExpression(ImportCallExpression* node) {
+ Print("ImportCall(");
+ Find(node->argument(), true);
+ Print(")");
+}
+
void CallPrinter::VisitThisFunction(ThisFunction* node) {}
@@ -1202,6 +1208,11 @@ void AstPrinter::VisitGetIterator(GetIterator* node) {
Visit(node->iterable());
}
+void AstPrinter::VisitImportCallExpression(ImportCallExpression* node) {
+ IndentedScope indent(this, "IMPORT-CALL", node->position());
+ Visit(node->argument());
+}
+
void AstPrinter::VisitThisFunction(ThisFunction* node) {
IndentedScope indent(this, "THIS-FUNCTION", node->position());
}
« include/v8.h ('K') | « src/ast/ast-traversal-visitor.h ('k') | src/bailout-reason.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698