diff options
author | John Hodge <tpg@mutabah.net> | 2016-09-27 17:07:38 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-09-27 17:07:38 +0800 |
commit | 5af08604e03340657d3823fcd4eefe3d21f2fb30 (patch) | |
tree | b29e6adb2e030ee59b24c3cecc12680c5ab8c8fa /src/expand/mod.cpp | |
parent | 2eb5d46788bcd1d2de1d3ee21c15edf05204ac11 (diff) | |
download | mrust-5af08604e03340657d3823fcd4eefe3d21f2fb30.tar.gz |
AST - Refactor extern blocks into Items
Diffstat (limited to 'src/expand/mod.cpp')
-rw-r--r-- | src/expand/mod.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/expand/mod.cpp b/src/expand/mod.cpp index 57330540..9537e5d3 100644 --- a/src/expand/mod.cpp +++ b/src/expand/mod.cpp @@ -757,6 +757,12 @@ void Expand_Mod(bool is_early, ::AST::Crate& crate, LList<const AST::Module*> mo ), (ExternBlock, // TODO: Run expand on inner items? + // HACK: Just convert inner items into outer items + auto items = mv$( e.items() ); + for(auto& i2 : items) + { + mod.items().push_back( mv$(i2) ); + } ), (Impl, Expand_Impl(is_early, crate, modstack, modpath, mod, e); |