Skip to content

Commit

Permalink
fix: fix gs.clear_cache(). clear symbol pos set (#1467)
Browse files Browse the repository at this point in the history
Signed-off-by: he1pa <[email protected]>
  • Loading branch information
He1pa authored Jul 3, 2024
1 parent 203a576 commit 96b46e8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kclvm/sema/src/core/symbol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,11 @@ impl SymbolData {
}

pub fn remove_symbol(&mut self, id: &SymbolRef) {
if let Some(symbol) = self.get_symbol(id.clone()) {
self.symbols_info
.symbol_pos_set
.remove(&symbol.get_range().1);
}
match id.get_kind() {
SymbolKind::Schema => {
self.schemas.remove(id.get_id());
Expand Down

0 comments on commit 96b46e8

Please sign in to comment.