summaryrefslogtreecommitdiff
path: root/src/hir/from_ast.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-09-27 17:07:38 +0800
committerJohn Hodge <tpg@mutabah.net>2016-09-27 17:07:38 +0800
commit5af08604e03340657d3823fcd4eefe3d21f2fb30 (patch)
treeb29e6adb2e030ee59b24c3cecc12680c5ab8c8fa /src/hir/from_ast.cpp
parent2eb5d46788bcd1d2de1d3ee21c15edf05204ac11 (diff)
downloadmrust-5af08604e03340657d3823fcd4eefe3d21f2fb30.tar.gz
AST - Refactor extern blocks into Items
Diffstat (limited to 'src/hir/from_ast.cpp')
-rw-r--r--src/hir/from_ast.cpp6
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");