Refactor pattern.rs
Per !222 (merged), it would be useful if set_atts
didn't take a node
argument. pattern.rs uses this to store a weak reference to the node (to avoid reference cycles), so it can do its funky resolution from fallback patterns.
Maybe we can resolve patterns in a different way? In an extra pass on the tree?