make macro a NameOwner

This commit is contained in:
Aleksey Kladov 2019-02-11 19:23:13 +03:00
parent e7b370226c
commit 2efdf41bdb
6 changed files with 14 additions and 5 deletions

View file

@ -1908,6 +1908,7 @@ impl ToOwned for MacroCall {
}
impl ast::NameOwner for MacroCall {}
impl MacroCall {
pub fn token_tree(&self) -> Option<&TokenTree> {
super::child_opt(self)