Skip to content

Commit d0ef748

Browse files
Remove instances of use of old helper
1 parent a93f0a6 commit d0ef748

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/parser.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,12 @@ pub fn parse_boxed_expr(
5454
Rule::path_id => {
5555
let path_id = primary.as_str();
5656

57-
let symbol_id = SymbolTable::symbol_id_from_name(st, path_id);
58-
match symbol_id {
59-
Some(id) => BoxedExpr::Sym(id, start, end),
60-
None => panic!("Referencing undefined symbol: {}", path_id),
61-
}
57+
let symbol_id = st[path_id];
58+
BoxedExpr::Sym(symbol_id, start, end)
59+
// match symbol_id {
60+
// Some(id) => BoxedExpr::Sym(id, start, end),
61+
// None => panic!("Referencing undefined symbol: {}", path_id),
62+
// }
6263
}
6364

6465
// parse don't care

0 commit comments

Comments
 (0)