diff options
author | John Hodge <tpg@mutabah.net> | 2016-10-18 08:59:41 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-10-18 08:59:59 +0800 |
commit | 48e99abaf3e22bb95d322f527f4cf154e9ccef66 (patch) | |
tree | c7cea98f62bca632e52430b46a9c2bd6b8caa62b /src/ast | |
parent | 6511ff4ec666f5bb040d07df85dbd4b02d9c9f0b (diff) | |
download | mrust-48e99abaf3e22bb95d322f527f4cf154e9ccef66.tar.gz |
AST - Load referenced crates in anon modules
Diffstat (limited to 'src/ast')
-rw-r--r-- | src/ast/crate.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ast/crate.cpp b/src/ast/crate.cpp index c05b2e29..5b15a15d 100644 --- a/src/ast/crate.cpp +++ b/src/ast/crate.cpp @@ -29,6 +29,10 @@ namespace { } ) } + // TODO: What about if an anon mod has been #[cfg]-d out? + for(const auto& anon : mod.anon_mods() ) { + iterate_module(*anon, fcn); + } } } |