add inspect implementation for dict and set

This commit is contained in:
Brendan Hansknecht 2023-11-28 12:48:04 -08:00
parent 79a58843b5
commit 9b181e1b3f
No known key found for this signature in database
GPG key ID: 0EA784685083E75B
5 changed files with 1239 additions and 2 deletions

View file

@ -29,8 +29,8 @@ pub(crate) fn derive_to_inspector(
) -> DerivedBody {
let (body, body_type) = match key {
FlatInspectableKey::List() => to_inspector_list(env, def_symbol),
FlatInspectableKey::Set() => todo!(),
FlatInspectableKey::Dict() => todo!(),
FlatInspectableKey::Set() => unreachable!(),
FlatInspectableKey::Dict() => unreachable!(),
FlatInspectableKey::Record(fields) => {
// Generalized record var so we can reuse this impl between many records:
// if fields = { a, b }, this is { a: t1, b: t2 } for fresh t1, t2.