fn rewrite(
node: &NativeNode,
source_tags: &[Vec<String>],
source_metrics: &[Option<Arc<str>>],
) -> Result<NativeNode>Expand description
Rewrites node bottom-up: its children first, then the merge its own consumer contract needs of
them.