mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
super simplistic macro expansion
This commit is contained in:
parent
072028e679
commit
406505e096
3 changed files with 113 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue