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/hir/from_ast.cpp | |
parent | 2eb5d46788bcd1d2de1d3ee21c15edf05204ac11 (diff) | |
download | mrust-5af08604e03340657d3823fcd4eefe3d21f2fb30.tar.gz |
AST - Refactor extern blocks into Items
Diffstat (limited to 'src/hir/from_ast.cpp')
-rw-r--r-- | src/hir/from_ast.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/hir/from_ast.cpp b/src/hir/from_ast.cpp index 9667aa70..22477926 100644 --- a/src/hir/from_ast.cpp +++ b/src/hir/from_ast.cpp @@ -1038,7 +1038,11 @@ void _add_mod_val_item(::HIR::Module& mod, ::std::string name, bool is_pub, ::H BUG(sp, "Stray macro invocation in " << path); ), (ExternBlock, - TODO(sp, "Expand ExternBlock"); + if( e.items().size() > 0 ) + { + TODO(sp, "Expand ExternBlock"); + } + // TODO: Insert a record of the `link` attribute ), (Impl, TODO(sp, "Expand Item::Impl"); |