Skip to content

Commit 6268b3b

Browse files
committed
feat: expose arena get_type_rec
1 parent fc90357 commit 6268b3b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/arena.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,11 @@ impl Arena {
365365
self.exprs.rec(key)
366366
}
367367

368+
/// Returns the map of type record fields for the given type [`Record`]
369+
pub fn get_type_rec(&self, key: Record) -> &FxHashMap<StrRef, Type> {
370+
self.types.get_record(key)
371+
}
372+
368373
/// Returns the function argument types for the given [`ArgsRef`].
369374
pub fn get_args(&self, key: ArgsRef) -> &[Type] {
370375
self.types.get_args(key)

0 commit comments

Comments
 (0)