Function syntex_syntax::ext::tt::transcribe::new_tt_reader_with_doc_flag
[−]
[src]
pub fn new_tt_reader_with_doc_flag(sp_diag: &Handler, interp: Option<HashMap<Ident, Rc<NamedMatch>>>, src: Vec<TokenTree>, desugar_doc_comments: bool) -> TtReader
The extra desugar_doc_comments
flag enables reading doc comments
like any other attribute which consists of meta
and surrounding #[ ] tokens.
This can do Macro-By-Example transcription. On the other hand, if
src
contains no TokenTree::Sequence
s, MatchNt
s or SubstNt
s, interp
can
(and should) be None.