pub(crate) fn source_file_to_stream<'psess>(
psess: &'psess ParseSess,
source_file: Lrc<SourceFile>,
override_span: Option<Span>,
) -> Result<TokenStream, Vec<Diag<'psess>>>
Expand description
Given a source file, produces a sequence of token trees. Returns any buffered errors from parsing the token stream.