summaryrefslogtreecommitdiff
path: root/src/convert/ast_iterate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/convert/ast_iterate.cpp')
-rw-r--r--src/convert/ast_iterate.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/convert/ast_iterate.cpp b/src/convert/ast_iterate.cpp
index fd4ea614..79d4caf8 100644
--- a/src/convert/ast_iterate.cpp
+++ b/src/convert/ast_iterate.cpp
@@ -299,6 +299,14 @@ void CASTIterator::handle_module(AST::Path path, AST::Module& mod)
DEBUG("Handling submod '" << submod.first.name() << "'");
handle_module(path + submod.first.name(), submod.first);
}
+ unsigned int anon_mod_idx = 0;
+ for( auto& anonmod : mod.anon_mods() )
+ {
+ auto& submod = *anonmod;
+ DEBUG("Handling submod #" << anon_mod_idx);
+ handle_module(path + FMT("#" << anon_mod_idx), submod);
+ anon_mod_idx += 1;
+ }
UNINDENT();
}
void CASTIterator::handle_function(AST::Path path, AST::Function& fcn)