mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 23:25:03 +00:00
Added macro resolution and expansion
This commit is contained in:
parent
afaeb18910
commit
ce211434a6
8 changed files with 134 additions and 103 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue