code2graph 0.0.0-beta.3

Purpose-neutral code-graph extraction: source files → symbols, references, and cross-file edges. Tree-sitter based, no storage opinion.
Documentation
1
2
3
4
5
6
7
8
9
10
11
// SPDX-License-Identifier: Apache-2.0

//! The [`Resolver`] trait — the tier seam every resolver implements.

use crate::graph::{CodeGraph, FileFacts};

/// Links references to definitions. Pure: no I/O, deterministic.
pub trait Resolver {
    /// Resolve `files` into a graph of symbols and confidence-tagged edges.
    fn resolve(&self, files: &[FileFacts]) -> CodeGraph;
}