MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / fmt_block

Method fmt_block

cranelift/codegen/src/dominator_tree.rs:181–193  ·  view source on GitHub ↗
(domtree: &DominatorTree, block: Block)

Source from the content-addressed store, hash-verified

179 }
180
181 fn fmt_block(domtree: &DominatorTree, block: Block) -> impl core::fmt::Debug {
182 core::fmt::from_fn(move |f| {
183 let children = domtree
184 .children(block)
185 .map(|c| fmt_block(domtree, c))
186 .collect::<Vec<_>>();
187 let mut s = f.debug_tuple(&format!("{block}"));
188 if !children.is_empty() {
189 s.field(&children);
190 }
191 s.finish()
192 })
193 }
194
195 s.field(&fmt_block(self, root));
196 }

Callers

nothing calls this directly

Calls 5

childrenMethod · 0.80
mapMethod · 0.45
is_emptyMethod · 0.45
fieldMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected