aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src
diff options
context:
space:
mode:
authorEdwin Cheng <[email protected]>2020-05-02 03:16:26 +0100
committerEdwin Cheng <[email protected]>2020-05-02 03:16:26 +0100
commitedf0b4c1528407d5077220191e601ac41f790b99 (patch)
treeadc3f348325b5d1fd439f36cd31f755113331779 /crates/ra_syntax/src
parent291d03949bbd1e8f96dcf348e184d91d57204419 (diff)
Test whether it is bang macro properly
Diffstat (limited to 'crates/ra_syntax/src')
-rw-r--r--crates/ra_syntax/src/ast/extensions.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_syntax/src/ast/extensions.rs b/crates/ra_syntax/src/ast/extensions.rs
index f2ea5088e..d68f1029f 100644
--- a/crates/ra_syntax/src/ast/extensions.rs
+++ b/crates/ra_syntax/src/ast/extensions.rs
@@ -423,6 +423,10 @@ impl ast::MacroCall {
423 None 423 None
424 } 424 }
425 } 425 }
426
427 pub fn is_bang(&self) -> bool {
428 self.is_macro_rules().is_none()
429 }
426} 430}
427 431
428impl ast::LifetimeParam { 432impl ast::LifetimeParam {