Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
trampolines
Function · 0.70
Calls
3
parse_functions
Function · 0.85
unwrap
Method · 0.45
into_iter
Method · 0.45
Tested by
1
trampolines
Function · 0.56