agentshield/analysis/composite_flow/
mod.rs1#![cfg_attr(
8 not(feature = "typescript"),
9 expect(
10 dead_code,
11 reason = "composite-flow types are exercised by the TypeScript analyzer only"
12 )
13)]
14
15pub(crate) mod ast;
16pub(crate) mod builder;
17pub(crate) mod guard;
18pub(crate) mod types;
19
20#[cfg(test)]
21mod tests;
22
23pub use types::*;
24
25#[cfg(feature = "typescript")]
26pub fn build_composite_flow_candidates(
27 tools: &[ToolFlowInput],
28 sources: &[SourceUnit<'_>],
29) -> Vec<CompositeFlowCandidate> {
30 builder::build(tools, sources)
31}
32
33#[cfg(not(feature = "typescript"))]
34pub fn build_composite_flow_candidates(
35 _tools: &[ToolFlowInput],
36 _sources: &[SourceUnit<'_>],
37) -> Vec<CompositeFlowCandidate> {
38 Vec::new()
39}