Right now, if you have a DWARFTypefoo and you want to get some of its common derivations (e.g. foo *, const foo *), you need to jump through some hoops:
next(typ for typ in foo.deriving_types if typ.is_pointer)
next(typ for typ in foo.deriving_types if typ.is_const)
This becomes especially annoying when you want multiple levels of derivation. Instead, we should support APIs like these:
Right now, if you have a
DWARFType
foo
and you want to get some of its common derivations (e.g.foo *
,const foo *
), you need to jump through some hoops:This becomes especially annoying when you want multiple levels of derivation. Instead, we should support APIs like these: