sway_parse

Function lex

Source
pub fn lex(
    handler: &Handler,
    src: &Arc<str>,
    start: usize,
    end: usize,
    source_id: Option<SourceId>,
) -> Result<TokenStream, ErrorEmitted>