Skip to main content

semantic/
lib.rs

1// SPDX-License-Identifier: Apache-2.0
2//! Semantic analysis and parser-heavy diff support.
3
4pub mod analysis;
5pub mod cache;
6pub mod diff;
7pub mod parser;
8mod symbol_extraction;
9pub mod symbol_resolver;
10
11pub use analysis::{
12    AggregateKind, AggregatedChange, AggregationResult, BlastRadius, CallGraph, CallGraphNode,
13    FunctionKey, HotEventKind, HotSpot, HotSpotKey, HotSpotKeyValue, HotSpotParams, HotSpotsReport,
14    SimilarityMethod, aggregate_changes, analyze_actor_histogram, analyze_hot_spots,
15    classify_modification, classify_modification_with_confidence, compute_similarity,
16    detect_file_renames, detect_function_changes,
17};
18pub use cache::{SemanticParseCache, SemanticParseCacheStats};
19pub use diff::{
20    DiffKind, SemanticBudget, SemanticCheckOnlyResult, SemanticCheckStatus, SemanticDiffOptions,
21    SemanticDiffResult, SemanticFallbackReason, SemanticSummaryResult, WorktreeStatus,
22    semantic_check_only, semantic_check_only_worktree, semantic_diff, semantic_diff_summary,
23    semantic_diff_summary_worktree, semantic_diff_worktree,
24};
25pub use parser::{Language, ParsedFile};