source_file_to_stream

Function source_file_to_stream 

Source
pub(crate) fn source_file_to_stream<'psess>(
    psess: &'psess ParseSess,
    source_file: Arc<SourceFile>,
    override_span: Option<Span>,
    strip_tokens: StripTokens,
) -> 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.