summaryrefslogtreecommitdiff
path: root/source/slang/compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/compiler.h')
-rw-r--r--source/slang/compiler.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/slang/compiler.h b/source/slang/compiler.h
index 7c4a17607..a6f3eee0e 100644
--- a/source/slang/compiler.h
+++ b/source/slang/compiler.h
@@ -203,9 +203,16 @@ namespace Slang
RefPtr<ProgramLayout> layout;
// Modules that have been dynamically loaded via `import`
- Dictionary<String, RefPtr<ProgramSyntaxNode>> loadedModulesMap;
+ //
+ // This is a list of unique modules loaded, in the order they were encountered.
List<RefPtr<ProgramSyntaxNode> > loadedModulesList;
+ // Map from the logical name of a module to its definition
+ Dictionary<String, RefPtr<ProgramSyntaxNode>> mapPathToLoadedModule;
+
+ // Map from the path of a module file to its definition
+ Dictionary<String, RefPtr<ProgramSyntaxNode>> mapNameToLoadedModules;
+
CompileRequest(Session* session)
: mSession(session)
@@ -248,7 +255,6 @@ namespace Slang
CodePosition const& loc);
void handlePoundImport(
- String const& name,
String const& path,
TokenList const& tokens);