From c16fc84a0071892ea0f4e3c5c70aa101e6400aec Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Mon, 26 Jun 2017 09:07:07 -0700 Subject: Include imported code when generating reflection data - The basic idea is simple: be sure to enumerate code in `__import`ed modules when generating reflection info - Note that we don't currently allow an entry point to appear in an imported module, so we only consider globlal-scope parameters - Although there isn't currently a real implementation of namespacing, I went ahead and ensured that parameters in imported modules are treated as distinct from parameters in the user's code, even if they have the same name. --- source/slang/compiler.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/slang/compiler.h') diff --git a/source/slang/compiler.h b/source/slang/compiler.h index 36fc5f42f..3f45ea5c7 100644 --- a/source/slang/compiler.h +++ b/source/slang/compiler.h @@ -211,7 +211,8 @@ namespace Slang RefPtr layout; // Modules that have been dynamically loaded via `import` - Dictionary> loadedModules; + Dictionary> loadedModulesMap; + List > loadedModulesList; CompileRequest(Session* session) -- cgit v1.2.3