diff options
author | John Hodge <tpg@mutabah.net> | 2016-05-24 15:12:25 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-05-24 15:12:25 +0800 |
commit | dd32dcc71299a489f18dc9d1247104cb81b6b5dd (patch) | |
tree | cd050481454e65f1929cb28c658bc8c2c678b00a /src/hir/from_ast.cpp | |
parent | ba6f4df093bc8bfc330b2205279f3f0fca225e77 (diff) | |
download | mrust-dd32dcc71299a489f18dc9d1247104cb81b6b5dd.tar.gz |
HIR Expand Type - Convert to use a generic HIR visitor
Diffstat (limited to 'src/hir/from_ast.cpp')
-rw-r--r-- | src/hir/from_ast.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/hir/from_ast.cpp b/src/hir/from_ast.cpp index 46a49e75..2d5339ac 100644 --- a/src/hir/from_ast.cpp +++ b/src/hir/from_ast.cpp @@ -786,8 +786,8 @@ void LowerHIR_Module_Impls(const ::AST::Module& ast_mod, ::HIR::Crate& hir_crat else { ::std::map< ::std::string, ::HIR::Function> methods; - ::std::map< ::std::string, ::HIR::Constant> constants; - ::std::map< ::std::string, ::HIR::TypeAlias> types; + ::std::map< ::std::string, ::HIR::ExprPtr> constants; + ::std::map< ::std::string, ::HIR::TypeRef> types; for(const auto& item : impl.items()) { @@ -795,8 +795,9 @@ void LowerHIR_Module_Impls(const ::AST::Module& ast_mod, ::HIR::Crate& hir_crat ( ERROR(Span(), E0000, "Unexpected item type in trait impl"); ), + // TODO: Associated constants (Type, - types.insert( ::std::make_pair(item.name, LowerHIR_TypeAlias(e)) ); + types.insert( ::std::make_pair(item.name, LowerHIR_Type(e.type())) ); ), (Function, methods.insert( ::std::make_pair(item.name, LowerHIR_Function(e)) ); |