mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Test whether it is bang macro properly
This commit is contained in:
parent
291d03949b
commit
edf0b4c152
2 changed files with 10 additions and 8 deletions
|
@ -423,6 +423,10 @@ impl ast::MacroCall {
|
|||
None
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_bang(&self) -> bool {
|
||||
self.is_macro_rules().is_none()
|
||||
}
|
||||
}
|
||||
|
||||
impl ast::LifetimeParam {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue