diff options
Diffstat (limited to 'crates/syntax/src/ast/node_ext.rs')
-rw-r--r-- | crates/syntax/src/ast/node_ext.rs | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/crates/syntax/src/ast/node_ext.rs b/crates/syntax/src/ast/node_ext.rs index 820af2d20..c59a29eab 100644 --- a/crates/syntax/src/ast/node_ext.rs +++ b/crates/syntax/src/ast/node_ext.rs | |||
@@ -382,21 +382,6 @@ impl ast::Visibility { | |||
382 | } | 382 | } |
383 | } | 383 | } |
384 | 384 | ||
385 | impl ast::MacroCall { | ||
386 | pub fn is_macro_rules(&self) -> Option<ast::Name> { | ||
387 | let name_ref = self.path()?.segment()?.name_ref()?; | ||
388 | if name_ref.text() == "macro_rules" { | ||
389 | self.name() | ||
390 | } else { | ||
391 | None | ||
392 | } | ||
393 | } | ||
394 | |||
395 | pub fn is_bang(&self) -> bool { | ||
396 | self.is_macro_rules().is_none() | ||
397 | } | ||
398 | } | ||
399 | |||
400 | impl ast::LifetimeParam { | 385 | impl ast::LifetimeParam { |
401 | pub fn lifetime_bounds(&self) -> impl Iterator<Item = SyntaxToken> { | 386 | pub fn lifetime_bounds(&self) -> impl Iterator<Item = SyntaxToken> { |
402 | self.syntax() | 387 | self.syntax() |
@@ -476,5 +461,5 @@ impl ast::DocCommentsOwner for ast::Static {} | |||
476 | impl ast::DocCommentsOwner for ast::Const {} | 461 | impl ast::DocCommentsOwner for ast::Const {} |
477 | impl ast::DocCommentsOwner for ast::TypeAlias {} | 462 | impl ast::DocCommentsOwner for ast::TypeAlias {} |
478 | impl ast::DocCommentsOwner for ast::Impl {} | 463 | impl ast::DocCommentsOwner for ast::Impl {} |
479 | impl ast::DocCommentsOwner for ast::MacroCall {} | 464 | impl ast::DocCommentsOwner for ast::MacroRules {} |
480 | impl ast::DocCommentsOwner for ast::Use {} | 465 | impl ast::DocCommentsOwner for ast::Use {} |