pub fn build_completion_cache(
sources: &Value,
contracts: Option<&Value>,
file_id_remap: Option<&HashMap<u64, FileId>>,
) -> CompletionCacheExpand description
Build a CompletionCache from AST sources and contracts.
contracts is the .contracts section of the compiler output (optional).
When file_id_remap is provided, every solc-assigned file ID (both in
path_to_file_id and in ScopeRange.file_id) is translated into a
canonical ID from the project-wide [PathInterner]. Pass None in
tests or when canonical IDs are not needed.