pub fn flatten_pipeline( working_set: &StateWorkingSet<'_>, pipeline: &Pipeline, ) -> Vec<(Span, FlatShape)>