Skip to main content

classify_for_watch

Function classify_for_watch 

Source
pub fn classify_for_watch(
    rel_file: &str,
    old_src: &str,
    new_src: &str,
    generation: u64,
) -> FileDiff
Expand description

Watch-loop classifier behind crate::hot_diff::WatchCache::classify_batch.

Comment/whitespace-only saves are FileDiff::NoOp; edits to files without any view! invocation are FileDiff::Tier2 with zero AST parsing; view! files tokenize and scan old_src / new_src at most once.