Skip to content

Commit 2422cf7

Browse files
committed
move overload_defs to symbolvisitor
1 parent 448b646 commit 2422cf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lpython/semantics/python_ast_to_asr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ class CommonVisitor : public AST::BaseVisitor<Derived> {
203203
// The main module is stored directly in TranslationUnit, other modules are Modules
204204
bool main_module;
205205
PythonIntrinsicProcedures intrinsic_procedures;
206-
std::map<std::string, Vec<ASR::symbol_t* >> overload_defs;
207206

208207
CommonVisitor(Allocator &al, SymbolTable *symbol_table,
209208
diag::Diagnostics &diagnostics, bool main_module)
@@ -517,6 +516,7 @@ class SymbolTableVisitor : public CommonVisitor<SymbolTableVisitor> {
517516
std::map<SymbolTable*, ASR::accessType> assgn;
518517
ASR::symbol_t *current_module_sym;
519518
std::vector<std::string> excluded_from_symtab;
519+
std::map<std::string, Vec<ASR::symbol_t* >> overload_defs;
520520

521521

522522
SymbolTableVisitor(Allocator &al, SymbolTable *symbol_table,

0 commit comments

Comments
 (0)