[][src]Function syntex_syntax2::ext::base::get_single_str_from_tts

pub fn get_single_str_from_tts(
    cx: &mut ExtCtxt,
    sp: Span,
    tts: &[TokenTree],
    name: &str
) -> Option<String>

Extract the string literal from the first token of tts. If this is not a string literal, emit an error and return None.