aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorveetaha <[email protected]>2020-05-10 17:09:36 +0100
committerveetaha <[email protected]>2020-05-10 17:09:36 +0100
commit258a3461b428efa0b8cc8fcd40c7844a8ce22406 (patch)
tree18a093a1453ae1848aa5abd092140a2acaa1784f
parent3554866d67809e027ad6faeda1604a36a27c6561 (diff)
Add proper docs for TokenTree as per edwin0cheng
-rw-r--r--crates/ra_syntax/src/ast/generated/nodes.rs3
-rw-r--r--xtask/src/ast_src.rs3
2 files changed, 4 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/ast/generated/nodes.rs b/crates/ra_syntax/src/ast/generated/nodes.rs
index dbb009b68..4bcdbd495 100644
--- a/crates/ra_syntax/src/ast/generated/nodes.rs
+++ b/crates/ra_syntax/src/ast/generated/nodes.rs
@@ -1872,7 +1872,8 @@ impl Attr {
1872 pub fn input(&self) -> Option<AttrInput> { support::child(&self.syntax) } 1872 pub fn input(&self) -> Option<AttrInput> { support::child(&self.syntax) }
1873 pub fn r_brack_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![']']) } 1873 pub fn r_brack_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![']']) }
1874} 1874}
1875/// // TODO: clarify on this AST type @edwin0cheng 1875/// Stores a list of lexer tokens and other `TokenTree`s.
1876/// It appears in attributes, macro_rules and macro call (foo!)
1876/// 1877///
1877/// ``` 1878/// ```
1878/// macro_call! ❰ { my syntax here } ❱; 1879/// macro_call! ❰ { my syntax here } ❱;
diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs
index ed1bac091..47a5d1d91 100644
--- a/xtask/src/ast_src.rs
+++ b/xtask/src/ast_src.rs
@@ -1577,7 +1577,8 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
1577 /// [Reference](https://doc.rust-lang.org/reference/attributes.html) 1577 /// [Reference](https://doc.rust-lang.org/reference/attributes.html)
1578 struct Attr { T![#], T![!], T!['['], Path, T![=], input: AttrInput, T![']'] } 1578 struct Attr { T![#], T![!], T!['['], Path, T![=], input: AttrInput, T![']'] }
1579 1579
1580 /// // TODO: clarify on this AST type @edwin0cheng 1580 /// Stores a list of lexer tokens and other `TokenTree`s.
1581 /// It appears in attributes, macro_rules and macro call (foo!)
1581 /// 1582 ///
1582 /// ``` 1583 /// ```
1583 /// macro_call! ❰ { my syntax here } ❱; 1584 /// macro_call! ❰ { my syntax here } ❱;