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

Unified Diff: src/ast/prettyprinter.cc

Issue 2703563002: [ESNext] Implement DynamicImportCall (Closed)
Patch Set: rebase Created 3 years, 8 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 | « src/ast/ast-traversal-visitor.h ('k') | src/bailout-reason.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/prettyprinter.cc
diff --git a/src/ast/prettyprinter.cc b/src/ast/prettyprinter.cc
index a0360bf610a55d96eb07ddc90623342745f06af9..21ce932a085a9c9441b81b01135730b83d94c945 100644
--- a/src/ast/prettyprinter.cc
+++ b/src/ast/prettyprinter.cc
@@ -384,6 +384,12 @@ void CallPrinter::VisitGetIterator(GetIterator* node) {
if (was_found) done_ = true;
}
+void CallPrinter::VisitImportCallExpression(ImportCallExpression* node) {
+ Print("ImportCall(");
+ Find(node->argument(), true);
+ Print(")");
+}
+
void CallPrinter::VisitThisFunction(ThisFunction* node) {}
@@ -1203,6 +1209,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());
}
« no previous file with comments | « 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