pub fn link_by_path_match(
src_id: &FragmentId,
ref_str: &str,
idx: &FragmentIndex,
edges: &mut EdgeDict,
weight: f64,
reverse_factor: f64,
)Expand description
Links src_id to fragments of files the reference plausibly names.
A match must be component-aligned: the reference equals the path, a full
suffix of it, or a full prefix (a bazel package label names a directory).
The previous contains accepted a match anywhere in the path, so a short
generic reference — bazel deps and ansible roles are full of config,
test, common — matched thousands of paths and linked every fragment of
each, which is one of the two mechanisms behind envoy-class instances
hanging the graph build (50% of dcbench).