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 22ea159 commit fc999f3Copy full SHA for fc999f3
src/lpython/semantics/python_ast_to_asr.cpp
@@ -5114,6 +5114,14 @@ class BodyVisitor : public CommonVisitor<BodyVisitor> {
5114
tmp = nullptr;
5115
tmp_vec.clear();
5116
visit_stmt(*x.m_body[i]);
5117
+
5118
+ if (x.m_body[i]->type == LCompilers::LPython::AST::stmtType::Import){
5119
+ AST::Import_t import = (const AST::Import_t &) *x.m_body[i];
5120
+ for (size_t j=0;j<import.n_names;j++) {
5121
+ current_module_dependencies.push_back(al, import.m_names[i].m_name);
5122
+ }
5123
5124
5125
for (auto t: global_init) {
5126
if (t) {
5127
items.push_back(al, t);
0 commit comments