Skip to content

Commit cf7c44b

Browse files
committed
skip augassign in symtab visitor
1 parent 10c4f27 commit cf7c44b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lpython/semantics/python_ast_to_asr.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4512,6 +4512,10 @@ class SymbolTableVisitor : public CommonVisitor<SymbolTableVisitor> {
45124512
}
45134513
}
45144514

4515+
void visit_AugAssign(const AST::AugAssign_t &/*x*/) {
4516+
// We skip this in the SymbolTable visitor, but visit it in the BodyVisitor
4517+
}
4518+
45154519
void visit_AnnAssign(const AST::AnnAssign_t &/*x*/) {
45164520
// We skip this in the SymbolTable visitor, but visit it in the BodyVisitor
45174521
}

0 commit comments

Comments
 (0)