Skip to main content

semantic/analysis/
mod.rs

1// SPDX-License-Identifier: Apache-2.0
2//! Semantic analysis algorithms.
3
4mod analysis_aggregate;
5mod analysis_classify;
6mod analysis_functions;
7mod analysis_imports;
8mod analysis_renames;
9pub mod analysis_similarity;
10pub mod hot_spots;
11
12#[cfg(test)]
13mod analysis_tests;
14
15pub use analysis_aggregate::{
16    AggregateKind, AggregatedChange, AggregationResult, aggregate_changes,
17};
18pub(crate) use analysis_classify::classify_with_parsed;
19pub use analysis_classify::{classify_modification, classify_modification_with_confidence};
20pub(crate) use analysis_functions::detect_function_changes_with_parsed;
21pub use analysis_functions::{
22    FunctionRenameCandidate, FunctionRenameResolution, detect_function_changes,
23    resolve_function_rename,
24};
25pub(crate) use analysis_imports::detect_import_changes_with_parsed;
26pub use analysis_imports::{detect_import_changes, detect_import_changes_with_manifest};
27pub use analysis_renames::detect_file_renames;
28pub use analysis_similarity::{
29    SimilarityMethod, compute_similarity, try_compute_ast_similarity,
30    try_compute_ast_similarity_for_languages,
31};
32pub use hot_spots::{
33    HotEventKind, HotSpot, HotSpotKey, HotSpotKeyValue, HotSpotParams, HotSpotsReport,
34    analyze_actor_histogram, analyze_hot_spots,
35};