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

Function parse

crates/codegen/src/js.rs:314–316  ·  view source on GitHub ↗
(js: &str)

Source from the content-addressed store, hash-verified

312 }
313
314 fn parse(js: &str) -> Result<Vec<String>> {
315 JS::from_string(js.to_string()).exports()
316 }
317}

Callers 15

parse_no_exportsFunction · 0.70
parse_invalid_jsFunction · 0.70
parse_one_func_exportFunction · 0.70
parse_generator_exportFunction · 0.70
parse_two_func_exportsFunction · 0.70
parse_const_exportFunction · 0.70
parse_named_func_exportFunction · 0.70
parse_funcs_with_argsFunction · 0.70

Calls 1

exportsMethod · 0.80

Tested by 15

parse_no_exportsFunction · 0.56
parse_invalid_jsFunction · 0.56
parse_one_func_exportFunction · 0.56
parse_generator_exportFunction · 0.56
parse_two_func_exportsFunction · 0.56
parse_const_exportFunction · 0.56
parse_named_func_exportFunction · 0.56
parse_funcs_with_argsFunction · 0.56