Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afac7ba commit 9b1dba3Copy full SHA for 9b1dba3
src/libasr/codegen/asr_to_wasm.cpp
@@ -189,6 +189,14 @@ class ASRToWASMVisitor : public ASR::BaseVisitor<ASRToWASMVisitor> {
189
import_function(fn);
190
}
191
192
+ } else if (ASR::is_a<ASR::Module_t>(*item.second)) {
193
+ ASR::Module_t *m = ASR::down_cast<ASR::Module_t>(item.second);
194
+ for (auto &item : m->m_symtab->get_scope()) {
195
+ if (ASR::is_a<ASR::Function_t>(*item.second)) {
196
+ ASR::Function_t *fn = ASR::down_cast<ASR::Function_t>(item.second);
197
+ import_function(fn);
198
+ }
199
200
} else if (ASR::is_a<ASR::Function_t>(*item.second)) {
201
ASR::Function_t *fn = ASR::down_cast<ASR::Function_t>(item.second);
202
0 commit comments