Skip to main content

inspect_source_syntax

Function inspect_source_syntax 

Source
pub fn inspect_source_syntax(
    language: SourceSyntaxLanguage,
    source_path: &str,
    source: &str,
    tracker: &mut ExtractionTracker,
) -> Result<SourceSyntaxInspection, SourceSyntaxError>
Expand description

Inspects a focused source file with its mandatory Tree-sitter grammar.

The resulting candidate count is used as a structural guard for the narrower framework recognizers; it does not create or persist a repository-local AST.

ยงErrors

Returns SourceSyntaxError if the grammar cannot be selected or parsing fails.