pub(crate) fn maybe_file_to_stream<'sess>(
    sess: &'sess ParseSess,
    source_file: Lrc<SourceFile>,
    override_span: Option<Span>
) -> Result<TokenStream, Vec<DiagnosticBuilder<'sess>>>
Expand description

Given a source file, produces a sequence of token trees. Returns any buffered errors from parsing the token stream.