pub struct HeuristicsMatcher;Expand description
Pattern matchers for different frameworks and languages
Implementations§
Source§impl HeuristicsMatcher
impl HeuristicsMatcher
Sourcepub fn is_flutter_widget(node: &CodeNode) -> bool
pub fn is_flutter_widget(node: &CodeNode) -> bool
Check if a node looks like a Flutter widget
Sourcepub fn is_react_component(node: &CodeNode) -> bool
pub fn is_react_component(node: &CodeNode) -> bool
Check if a node looks like a React component
Sourcepub fn is_event_handler(node: &CodeNode) -> bool
pub fn is_event_handler(node: &CodeNode) -> bool
Check if a node looks like an event handler
Sourcepub fn is_callback_style(node: &CodeNode) -> bool
pub fn is_callback_style(node: &CodeNode) -> bool
Check if a node looks like a callback parameter
Sourcepub fn is_dependency_injection(node: &CodeNode) -> bool
pub fn is_dependency_injection(node: &CodeNode) -> bool
Check if a node looks like a factory or provider (DI pattern)
Sourcepub fn is_likely_entry_point(node: &CodeNode) -> bool
pub fn is_likely_entry_point(node: &CodeNode) -> bool
Check if a node is likely a production entry point.
Entry points are the outermost functions that receive external requests — HTTP handlers, CLI commands, cron jobs, webhook receivers, main functions. They’re the roots of execution trees; if a changed function reaches one, it means the change can affect real production traffic.
Sourcepub fn infer_uncertain_edges(nodes: &[&CodeNode]) -> Vec<UncertainEdge>
pub fn infer_uncertain_edges(nodes: &[&CodeNode]) -> Vec<UncertainEdge>
Infer uncertain edges from node patterns
Auto Trait Implementations§
impl Freeze for HeuristicsMatcher
impl RefUnwindSafe for HeuristicsMatcher
impl Send for HeuristicsMatcher
impl Sync for HeuristicsMatcher
impl Unpin for HeuristicsMatcher
impl UnsafeUnpin for HeuristicsMatcher
impl UnwindSafe for HeuristicsMatcher
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more