Refactor out ast::MacroDef.

This commit is contained in:
Jeffrey Seyfried
2017-03-17 21:58:48 +00:00
parent cf747fcbf7
commit 9c6430b325
10 changed files with 36 additions and 14 deletions

View File

@@ -3781,7 +3781,9 @@ impl<'a> Parser<'a> {
}
let span = lo.to(self.prev_span);
let kind = ItemKind::MacroDef(tts);
let kind = ItemKind::MacroDef(ast::MacroDef {
tokens: tts,
});
Ok(Some(self.mk_item(span, id, kind, Visibility::Inherited, attrs.to_owned())))
}