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

Unified Diff: src/ast/modules.h

Issue 2199283002: [modules] Introduce new VariableLocation for module imports/exports. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. Created 4 years, 4 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 | « no previous file | src/ast/modules.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/modules.h
diff --git a/src/ast/modules.h b/src/ast/modules.h
index 087b57426bcd8cc4031b8063d81534445e47e956..315f5281f724c90c1969c39182edb3876d5f3cd5 100644
--- a/src/ast/modules.h
+++ b/src/ast/modules.h
@@ -67,7 +67,6 @@ class ModuleDescriptor : public ZoneObject {
PendingCompilationErrorHandler* error_handler,
Zone* zone) const;
- private:
struct ModuleEntry : public ZoneObject {
const Scanner::Location location;
const AstRawString* export_name;
@@ -83,6 +82,10 @@ class ModuleDescriptor : public ZoneObject {
module_request(nullptr) {}
};
+ const ZoneList<const ModuleEntry*>& exports() { return exports_; }
+ const ZoneList<const ModuleEntry*>& imports() { return imports_; }
+
+ private:
ZoneList<const ModuleEntry*> exports_;
ZoneList<const ModuleEntry*> imports_;
};
« no previous file with comments | « no previous file | src/ast/modules.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698