aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/ast/generated
diff options
context:
space:
mode:
authorveetaha <[email protected]>2020-05-10 20:08:06 +0100
committerveetaha <[email protected]>2020-05-10 20:08:06 +0100
commit2a5ab9f5ddc2f60a9229904c412ac943e894c4b7 (patch)
treea618a8c15ba1531a6d0272bc70cdc6580dcab7e2 /crates/ra_syntax/src/ast/generated
parent73c6bc4dbd8ac06f587045d030d07c0fabebf260 (diff)
Resolve TODO about macro 2.0 def
Diffstat (limited to 'crates/ra_syntax/src/ast/generated')
-rw-r--r--crates/ra_syntax/src/ast/generated/nodes.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/crates/ra_syntax/src/ast/generated/nodes.rs b/crates/ra_syntax/src/ast/generated/nodes.rs
index 201ceb548..7ee4590ba 100644
--- a/crates/ra_syntax/src/ast/generated/nodes.rs
+++ b/crates/ra_syntax/src/ast/generated/nodes.rs
@@ -2537,17 +2537,15 @@ impl MetaItem {
2537 pub fn attr_input(&self) -> Option<AttrInput> { support::child(&self.syntax) } 2537 pub fn attr_input(&self) -> Option<AttrInput> { support::child(&self.syntax) }
2538 pub fn nested_meta_items(&self) -> AstChildren<MetaItem> { support::children(&self.syntax) } 2538 pub fn nested_meta_items(&self) -> AstChildren<MetaItem> { support::children(&self.syntax) }
2539} 2539}
2540/// Macro definition. 2540/// Macro 2.0 definition.
2541/// 2541/// Their syntax is still WIP by rustc team...
2542/// ``` 2542/// ```
2543/// ❰ 2543/// ❰
2544/// macro_rules! foo { 2544/// macro foo { }
2545/// ($bar:tt) => {$bar}
2546/// }
2547/// ❱ 2545/// ❱
2548/// ``` 2546/// ```
2549/// 2547///
2550/// [Reference](https://doc.rust-lang.org/reference/macros-by-example.html) 2548/// [RFC](https://github.com/rust-lang/rfcs/blob/master/text/1584-macros.md)
2551#[derive(Debug, Clone, PartialEq, Eq, Hash)] 2549#[derive(Debug, Clone, PartialEq, Eq, Hash)]
2552pub struct MacroDef { 2550pub struct MacroDef {
2553 pub(crate) syntax: SyntaxNode, 2551 pub(crate) syntax: SyntaxNode,