Skip to main content

Crate impactsense_parser

Crate impactsense_parser 

Source
Expand description

Multi-language static analysis: parse codebases into a dependency graph for impact analysis.

§Quick start

use std::path::Path;
use impactsense_parser::pipeline::ScanOptions;
use impactsense_parser::parse_project;
use impactsense_parser::store::GraphStore;

let graph = parse_project(Path::new("/path/to/repo"), &ScanOptions::default()).unwrap();
let _callers = graph.callers("com.example.Service.method");

Re-exports§

pub use graph::ExtractOptions;
pub use graph::build_project_ir;
pub use graph::enrich_project_ir_code_bytes;
pub use extract::scan_and_build_ir_async;
pub use project::parse_project;
pub use project::parse_project_async;
pub use project::refresh_files;
pub use project::ProjectError;
pub use compress::compressor_language_from_ir_string;
pub use compress::decompress_code_bytes;
pub use compress::language_id_from_ir_string;
pub use compress::CompressorClient;
pub use compress::CompressorConfig;
pub use compress::CompressError;
pub use store::ExplainOptions;
pub use store::ExplainSourceOrigin;
pub use store::ExplainSymbolResult;
pub use store::GraphStore;
pub use store::InMemoryGraph;
pub use store::ImpactReport;
pub use store::QueryLimits;
pub use store::SymbolRef;

Modules§

compress
edge
extract
Pure extraction from parsed files into ProjectIr (no Neo4j).
go_resolve
Discover go.mod modules and resolve import paths to files on disk.
go_stdlib
Go standard-library import paths (from go list std at embed time).
graph
ir
pipeline
project
High-level project parsing API for library and MCP consumers.
python_common_external
Common third-party / optional top-level names (PyPI, Sphinx, etc.). Imports whose first segment is listed here are not logged as unresolved when they do not map to scanned files (same idea as stdlib filtering).
python_stdlib
Top-level names from CPython sys.stdlib_module_names (embedded at build time).
scanner
scanner_incremental
schema
store

Structs§

MultiLangParser
A reusable multi-language Tree-Sitter parser.

Enums§

LanguageId
Identifier for all languages this parser supports.
ParserError
Errors that can be returned by the parsing layer.

Functions§

language_for
Get the underlying Tree-Sitter Language for a given LanguageId.
parse_once
Convenience function for one-off parses.