Continued progress on new lambda set compaction algorithm

This commit is contained in:
Ayaz Hafiz 2022-07-05 18:43:42 -04:00
parent 5534577a90
commit 0b427646e4
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
5 changed files with 287 additions and 41 deletions

View file

@ -778,8 +778,20 @@ impl<'a> fmt::Debug for SubsFmtContent<'a> {
fn subs_fmt_content(this: &Content, subs: &Subs, f: &mut fmt::Formatter) -> fmt::Result {
match this {
Content::FlexVar(name) => write!(f, "Flex({:?})", name),
Content::FlexAbleVar(name, symbol) => write!(f, "FlexAble({:?}, {:?})", name, symbol),
Content::FlexVar(name) => {
let name = match name {
Some(index) => subs[*index].as_str(),
None => "_",
};
write!(f, "Flex({})", name)
}
Content::FlexAbleVar(name, symbol) => {
let name = match name {
Some(index) => subs[*index].as_str(),
None => "_",
};
write!(f, "FlexAble({}, {:?})", name, symbol)
}
Content::RigidVar(name) => write!(f, "Rigid({:?})", name),
Content::RigidAbleVar(name, symbol) => write!(f, "RigidAble({:?}, {:?})", name, symbol),
Content::RecursionVar {