Skip to main content

build_check_context

Function build_check_context 

Source
pub async fn build_check_context(
    engine: &Arc<Engine>,
    repo_id: Uuid,
    changeset_files: &[String],
    work_dir: &Path,
) -> Result<CheckContext>
Expand description

Build a CheckContext by querying the Engine’s graph stores for the “before” snapshot and parsing the materialized changeset files for the “after” snapshot.

§Arguments

  • engine — the dk-engine orchestrator (symbol store, call graph, etc.)
  • repo_id — the repository UUID
  • changeset_files — relative paths of changed files
  • work_dir — the directory where changeset files have been materialized