Skip to main content

source_token_kinds_equivalent

Function source_token_kinds_equivalent 

Source
pub fn source_token_kinds_equivalent(
    path: &Path,
    current: &str,
    base: &str,
    cross_language: bool,
) -> bool
Expand description

Compare JS/TS sources for audit-safe reuse of the current analysis at base.

Token kinds retain identifiers and ordinary literal values. Template and regex token kinds omit content, so their raw source spans must also match. Whole-template comparison conservatively rejects formatting changes inside interpolation expressions. The boolean is forwarded as tokenizer skip_imports.