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

Method return_count

winch/codegen/src/codegen/control.rs:146–153  ·  view source on GitHub ↗

Returns the signature return count.

(&self)

Source from the content-addressed store, hash-verified

144
145 /// Returns the signature return count.
146 pub fn return_count(&self) -> usize {
147 match &self.ty {
148 BlockType::Void => 0,
149 BlockType::Single(_) => 1,
150 BlockType::Func(f) => f.results().len(),
151 BlockType::ABISig(sig) => sig.results().len(),
152 }
153 }
154}
155
156impl BlockType {

Callers 1

calculate_stack_stateMethod · 0.80

Calls 2

lenMethod · 0.45
resultsMethod · 0.45

Tested by

no test coverage detected