Skip to main content

tolerant_parse

Function tolerant_parse 

Source
pub fn tolerant_parse(source: &str, filename: &str) -> TolerantParseResult
Expand description

Perform tolerant parsing and ambiguity detection on source text.

Attempts SWC parse for .ts/.tsx files to count statements and imports. For all supported extensions, scans source text for ambiguity patterns. Returns partial results even on parse failure.