Skip to main content

parse_units_migrating

Function parse_units_migrating 

Source
pub fn parse_units_migrating(
    tokens: &[Token],
    source: &str,
) -> Result<(Vec<SourceUnit>, Vec<CompileError>, bool), Vec<CompileError>>
Expand description

#2203 (DECISION F): parse_units_with_drain_check for the formatter, which accepts the legacy -- comment and --| doc line spellings instead of reporting them, since printing them as // and --- is the migration. Every other error is reported as usual.