Remove lookup_by_name
This commit is contained in:
parent
1ecf1e506c
commit
22887678bd
@ -99,17 +99,6 @@ impl SymbolTable {
|
|||||||
self.symbol_path_to_symbol.insert(fully_qualified_name, symbol);
|
self.symbol_path_to_symbol.insert(fully_qualified_name, symbol);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn lookup_by_name(&self, name: &Rc<String>) -> Option<&Symbol> {
|
|
||||||
let vec = vec![
|
|
||||||
ScopeSegment {
|
|
||||||
name: name.clone(),
|
|
||||||
kind: ScopeSegmentKind::Terminal,
|
|
||||||
}
|
|
||||||
];
|
|
||||||
let symbol_path = FullyQualifiedSymbolName(vec);
|
|
||||||
self.lookup_by_fqsn(&symbol_path)
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn lookup_by_fqsn(&self, fully_qualified_path: &FullyQualifiedSymbolName) -> Option<&Symbol> {
|
pub fn lookup_by_fqsn(&self, fully_qualified_path: &FullyQualifiedSymbolName) -> Option<&Symbol> {
|
||||||
self.symbol_path_to_symbol.get(fully_qualified_path)
|
self.symbol_path_to_symbol.get(fully_qualified_path)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user