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

Function parse

cranelift/filetests/src/function_runner.rs:840–842  ·  view source on GitHub ↗
(code: &str)

Source from the content-addressed store, hash-verified

838 use cranelift_reader::{ParseOptions, parse_functions, parse_test};
839
840 fn parse(code: &str) -> Function {
841 parse_functions(code).unwrap().into_iter().nth(0).unwrap()
842 }
843
844 #[test]
845 fn nop() {

Callers 1

trampolinesFunction · 0.70

Calls 3

parse_functionsFunction · 0.85
unwrapMethod · 0.45
into_iterMethod · 0.45

Tested by 1

trampolinesFunction · 0.56