Skip to main content

parse_arena_raw

Function parse_arena_raw 

Source
pub fn parse_arena_raw<'arena, 'src>(
    arena: &'arena Bump,
    source: &'src str,
) -> ArenaParseResult<'arena, 'src>
Expand description

Like parse_arena, but skips building the source_map::SourceMap.

result.source_map is a no-op empty map. Use this when you only need the AST and errors — formatters, linters, and batch processors that never call source_map.offset_to_line_col or source_map.span_to_line_col.