brokk-bifrost-python 0.10.1

Python language knowledge for brokk-bifrost: module identity, declarations, imports, and usage-graph resolution
Documentation
//! Python's bundled tree-sitter query assets.
//!
//! The `.scm` files ship inside this crate rather than
//! `brokk-bifrost-analysis/resources/` and are embedded at compile time, so a
//! consumer never resolves them from a runtime path. `brokk-bifrost-analysis`
//! folds [`PYTHON_QUERY_ASSETS`] into the per-language store epoch exactly as it
//! folds its own `resources/treesitter/<lang>/` files: the entry paths keep the
//! historical `treesitter/python/` prefix so the epoch's per-language filter is
//! one rule rather than two.

/// Directory the query assets live in, relative to this crate's root.
///
/// Reported by `PythonAdapter::query_directory()`. The relocation from the
/// analysis crate is why the Python store-epoch salt bumped: the salted content
/// now comes from this crate's `resources/`, not analysis's.
pub const PYTHON_QUERY_DIRECTORY: &str = "resources/treesitter/python";

/// Compile-time embedded `.scm` query files as `(relative_path, contents)`.
pub const PYTHON_QUERY_ASSETS: &[(&str, &str)] = &[
    (
        "treesitter/python/definitions.scm",
        include_str!("../resources/treesitter/python/definitions.scm"),
    ),
    (
        "treesitter/python/imports.scm",
        include_str!("../resources/treesitter/python/imports.scm"),
    ),
    (
        "treesitter/python/identifiers.scm",
        include_str!("../resources/treesitter/python/identifiers.scm"),
    ),
];