Skip to main content

parse_bounded_or_default

Function parse_bounded_or_default 

Source
pub fn parse_bounded_or_default<T: Send + Default>(
    source: &str,
    source_type: SourceType,
    walk: impl FnOnce(&ParserReturn<'_>) -> T + Send,
) -> T
Expand description

Parse source with Oxc and call walk with the result, through parse_bounded. Returns T::default() when the bracket nesting exceeds MAX_NESTING_DEPTH.