Skip to main content

parse_file

Function parse_file 

Source
pub fn parse_file(file: &WalkedFile) -> Result<StaticFileAnalysis>
Expand description

Parse a single file and return its structural analysis.

Returns an empty analysis (never Err) when:

  • Language is unsupported (skips disk read entirely)
  • File cannot be read from disk
  • tree-sitter fails to produce a parse tree