MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / parse_module_entry

Function parse_module_entry

crates/hll-to-ir/src/stdlib.rs:37–42  ·  view source on GitHub ↗
(entry: &str)

Source from the content-addressed store, hash-verified

35/// pc-to-source line table. `None` when the module or its path is unknown.
36pub fn stdlib_module_source_path(mode: TargetMode, name: &str) -> Option<&'static str> {
37 let manifest = fs_utils::build_manifest::parse(STDLIB_BUILD).ok()?;
38 let key = match mode {
39 TargetMode::Hosted => "hosted",
40 TargetMode::Freestanding => "freestanding",
41 TargetMode::Kernel => "kernel",
42 };
43 let entries = manifest.list(key).ok()??;
44 entries.into_iter().find_map(|entry| {
45 let (module_name, source_key) = parse_module_entry(&entry);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected