pub fn build_root_closure<F>(
root: WorkspaceFile,
workspace_root: Option<&Path>,
preview_features: &PreviewFeatures,
open_text: F,
) -> Vec<WorkspaceFile>Expand description
Build a (root + transitively-@import-reachable) WorkspaceFile set for
one compilation root.
File text comes from open_text when the file is currently open in the
editor, otherwise from disk. Already-visited paths are deduped so cyclic
import graphs terminate.