diff options
| author | Tim Foley <tfoley@nvidia.com> | 2017-06-20 13:57:46 -0700 |
|---|---|---|
| committer | Tim Foley <tfoley@nvidia.com> | 2017-06-20 13:57:46 -0700 |
| commit | d852ad9fedb71f23b3aa70db0c7b43f6d6fd10e2 (patch) | |
| tree | 90e3852bd59d99ac875010b371172139ed6cd021 /source/slang/parser.cpp | |
| parent | 4313db822ca468e33c765170c924bf031e5e66a5 (diff) | |
Only emit each `import`ed module once.
If the user imports a module along more than one path, we need to make sure we don't emit the code twice.
I handle this by keeping a set of already-emitted modules.
Down the line, a more robust code generation strategy for non-"rewriter" use cases would be handling this at the per-declaration level, and this logic wouldn't really be needed.
Diffstat (limited to 'source/slang/parser.cpp')
0 files changed, 0 insertions, 0 deletions
