super simplistic macro expansion

This commit is contained in:
Aleksey Kladov 2018-12-28 16:59:58 +03:00
parent 072028e679
commit 406505e096
3 changed files with 113 additions and 2 deletions

View file

@ -1877,6 +1877,10 @@ impl<'a> MacroCall<'a> {
pub fn token_tree(self) -> Option<TokenTree<'a>> {
super::child_opt(self)
}
pub fn path(self) -> Option<Path<'a>> {
super::child_opt(self)
}
}
// MatchArm