diff options
| author | Tim Foley <tfoley@nvidia.com> | 2017-06-26 09:07:07 -0700 |
|---|---|---|
| committer | Tim Foley <tfoley@nvidia.com> | 2017-06-26 10:31:43 -0700 |
| commit | c16fc84a0071892ea0f4e3c5c70aa101e6400aec (patch) | |
| tree | 6c5e2363cbf5c460006ea19ae4e0ac2243df291e /source/slang/compiler.h | |
| parent | d506737b8b00bcc89adf937994ceb6df4509c98a (diff) | |
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.
Diffstat (limited to 'source/slang/compiler.h')
| -rw-r--r-- | source/slang/compiler.h | 3 |
1 files changed, 2 insertions, 1 deletions
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<ProgramLayout> layout; // Modules that have been dynamically loaded via `import` - Dictionary<String, RefPtr<ProgramSyntaxNode>> loadedModules; + Dictionary<String, RefPtr<ProgramSyntaxNode>> loadedModulesMap; + List<RefPtr<ProgramSyntaxNode> > loadedModulesList; CompileRequest(Session* session) |
