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

Method build

crates/cranelift/src/debug/transform/expression.rs:244–250  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

242 }
243
244 pub fn build(&self) -> Option<write::Expression> {
245 if let [CompiledExpressionPart::Code(code)] = self.parts.as_slice() {
246 return Some(write::Expression::raw(code.to_vec()));
247 }
248 // locals found, not supported
249 None
250 }
251
252 pub fn build_with_locals<'a>(
253 &'a self,

Callers 1

clone_die_attributesFunction · 0.45

Calls 2

as_sliceMethod · 0.45
to_vecMethod · 0.45

Tested by

no test coverage detected