1
Fork 0

pull mbe token tree definition up

This commit is contained in:
Aleksey Kladov 2019-09-22 19:17:30 +03:00
parent 636b3543c2
commit 9fd75f5287
7 changed files with 243 additions and 234 deletions

View file

@ -14,7 +14,7 @@
//! ownership of the original.
use crate::ext::base;
use crate::ext::mbe::{macro_parser, quoted};
use crate::ext::mbe::{self, macro_parser};
use crate::parse::Directory;
use crate::parse::token::{self, DelimToken, Token, TokenKind};
use crate::print::pprust;
@ -64,7 +64,7 @@ where
impl TokenTree {
/// Use this token tree as a matcher to parse given tts.
crate fn parse(cx: &base::ExtCtxt<'_>, mtch: &[quoted::TokenTree], tts: TokenStream)
crate fn parse(cx: &base::ExtCtxt<'_>, mtch: &[mbe::TokenTree], tts: TokenStream)
-> macro_parser::NamedParseResult {
// `None` is because we're not interpolating
let directory = Directory {