Skip to content

Commit

Permalink
fmt check
Browse files Browse the repository at this point in the history
Signed-off-by: shruti2522 <[email protected]>
  • Loading branch information
shruti2522 committed Jun 3, 2024
1 parent 8b7ea99 commit f9d663b
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions kclvm/sema/src/core/symbol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,41 +236,6 @@ impl SymbolData {
}
}

pub fn remove_symbol(&mut self, id: &SymbolRef) {
match id.get_kind() {
SymbolKind::Schema => {
self.schemas.remove(id.get_id());
}
SymbolKind::Attribute => {
self.attributes.remove(id.get_id());
}
SymbolKind::Value => {
self.values.remove(id.get_id());
}
SymbolKind::Package => {
self.packages.remove(id.get_id());
}
SymbolKind::TypeAlias => {
self.type_aliases.remove(id.get_id());
}
SymbolKind::Unresolved => {
self.unresolved.remove(id.get_id());
}
SymbolKind::Rule => {
self.rules.remove(id.get_id());
}
SymbolKind::Expression => {
self.exprs.remove(id.get_id());
}
SymbolKind::Comment => {
self.comments.remove(id.get_id());
}
SymbolKind::Decorator => {
self.decorators.remove(id.get_id());
}
}
}

pub fn set_symbol_type(&mut self, id: SymbolRef, ty: TypeRef) {
match id.get_kind() {
SymbolKind::Schema => {
Expand Down

0 comments on commit f9d663b

Please sign in to comment.