diff options
author | John Hodge <tpg@mutabah.net> | 2016-10-24 08:39:49 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-10-24 08:39:49 +0800 |
commit | 4d6039f0755b88c135492d80e18ab640d402de88 (patch) | |
tree | 3382668660eb4061544ae6861e304fed02113e05 /src/ast/dump.cpp | |
parent | 9aa1f89f273b6acdd171543498bec661a04118fa (diff) | |
download | mrust-4d6039f0755b88c135492d80e18ab640d402de88.tar.gz |
AST - Remove separate impls list (now in item list)
Diffstat (limited to 'src/ast/dump.cpp')
-rw-r--r-- | src/ast/dump.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ast/dump.cpp b/src/ast/dump.cpp index f1b0a619..89b21a97 100644 --- a/src/ast/dump.cpp +++ b/src/ast/dump.cpp @@ -696,8 +696,11 @@ void RustPrinter::handle_module(const AST::Module& mod) handle_function(item.is_pub, item.name, e); } - for( const auto& i : mod.impls() ) + for( const auto& item : mod.items() ) { + if( !item.data.is_Impl() ) continue ; + const auto& i = item.data.as_Impl(); + m_os << "\n"; m_os << indent() << "impl"; print_params(i.def().params()); |