Skip to main content

parse_compilation_sources

Function parse_compilation_sources 

Source
pub fn parse_compilation_sources(compilation: &Value) -> BTreeMap<u64, String>
Expand description

Maps every source id listed in an ETHDebug compilation object to its path.

Entries without a numeric id or a string path are skipped rather than failing the whole load, since one malformed source entry should not hide the mapping for the rest.