MCPcopy Create free account
hub / github.com/Houseofmvps/codesight / parseImports

Function parseImports

plugins/ast/python/src/lib.rs:104–108  ·  view source on GitHub ↗
(source: *const u8, length: usize)

Source from the content-addressed store, hash-verified

102/// See [`parseRoutes`].
103#[unsafe(no_mangle)]
104pub unsafe extern "C" fn parseImports(source: *const u8, length: usize) -> u64 {
105 unsafe {
106 parse_and_then(source, length, extract_imports)
107 }
108}
109
110/// Decode UTF-8 source, parse with [`parse_module`], run `extract`, serialize, and
111/// `report`. Returns 0 on invalid UTF-8, a syntax error, or an empty result (host

Callers

nothing calls this directly

Calls 1

parse_and_thenFunction · 0.70

Tested by

no test coverage detected