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

Function parse_const_export_and_func_export

crates/codegen/src/js.rs:228–232  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

226
227 #[test]
228 fn parse_const_export_and_func_export() -> Result<()> {
229 let exports = parse("export const x = 1; export function foo() {}")?;
230 assert_eq!(vec!["foo"], exports);
231 Ok(())
232 }
233
234 #[test]
235 fn parse_named_func_export() -> Result<()> {

Callers

nothing calls this directly

Calls 1

parseFunction · 0.70

Tested by

no test coverage detected