Skip to main content

parse_ts_js

Function parse_ts_js 

Source
pub fn parse_ts_js(units: &[u16], grammar: TsGrammar) -> Option<Tree>
Expand description

One parse of source under grammar. Parser::parse returns None only on cancellation/malformed-input-size edge cases, never on ordinary syntax errors (those surface as ERROR nodes inside a still-present tree).