Added macro resolution and expansion

This commit is contained in:
Lenard Pratt 2019-04-15 11:01:29 +01:00
parent afaeb18910
commit ce211434a6
8 changed files with 134 additions and 103 deletions

View file

@ -126,6 +126,10 @@ impl Path {
}
self.segments.first().map(|s| &s.name)
}
pub fn expand_macro_expr(&self) -> Option<Name> {
self.as_ident().and_then(|name| Some(name.clone()))
}
}
impl GenericArgs {