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

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: Comment 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') | src/ast/modules.cc » ('J')
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 c672f2494917b60bbc310638c7786024410642a5..5c418fc3019ffb93914f43c231d861b0dc243a53 100644
--- a/src/ast/modules.h
+++ b/src/ast/modules.h
@@ -67,8 +67,6 @@ class ModuleDescriptor : public ZoneObject {
Scope* module_scope, PendingCompilationErrorHandler* error_handler,
Zone* zone) const;
-
- private:
struct ModuleEntry : public ZoneObject {
const Scanner::Location location;
const AstRawString* export_name;
@@ -84,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') | src/ast/modules.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698