Skip to main content

parse_files

Function parse_files 

Source
pub async fn parse_files<R: ParseRunner>(
    runner: &R,
    request: ParseRequest,
    per_file: Duration,
) -> Result<Vec<ParsedFile>, ParseError>
Expand description

Parses the files of request, one at a time, each in a runner of its own: one file’s imports and what they change can’t reach another’s, as they can’t reach a task’s (decision 326).

§Errors

ParseError if a runner can’t be started or talked to outside a file; errors inside a file become that file’s import error.