source_str_to_stream

Function source_str_to_stream 

Source
pub fn source_str_to_stream(
    psess: &ParseSess,
    name: FileName,
    source: String,
    override_span: Option<Span>,
) -> Result<TokenStream, Vec<Diag<'_>>>
Expand description

Given a source string, produces a sequence of token trees.

NOTE: This only strips shebangs, not frontmatter!