mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Add proper docs for TokenTree as per edwin0cheng
This commit is contained in:
parent
3554866d67
commit
258a3461b4
2 changed files with 4 additions and 2 deletions
|
@ -1872,7 +1872,8 @@ impl Attr {
|
||||||
pub fn input(&self) -> Option<AttrInput> { support::child(&self.syntax) }
|
pub fn input(&self) -> Option<AttrInput> { support::child(&self.syntax) }
|
||||||
pub fn r_brack_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![']']) }
|
pub fn r_brack_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![']']) }
|
||||||
}
|
}
|
||||||
/// // TODO: clarify on this AST type @edwin0cheng
|
/// Stores a list of lexer tokens and other `TokenTree`s.
|
||||||
|
/// It appears in attributes, macro_rules and macro call (foo!)
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// macro_call! ❰ { my syntax here } ❱;
|
/// macro_call! ❰ { my syntax here } ❱;
|
||||||
|
|
|
@ -1577,7 +1577,8 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
|
||||||
/// [Reference](https://doc.rust-lang.org/reference/attributes.html)
|
/// [Reference](https://doc.rust-lang.org/reference/attributes.html)
|
||||||
struct Attr { T![#], T![!], T!['['], Path, T![=], input: AttrInput, T![']'] }
|
struct Attr { T![#], T![!], T!['['], Path, T![=], input: AttrInput, T![']'] }
|
||||||
|
|
||||||
/// // TODO: clarify on this AST type @edwin0cheng
|
/// Stores a list of lexer tokens and other `TokenTree`s.
|
||||||
|
/// It appears in attributes, macro_rules and macro call (foo!)
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// macro_call! ❰ { my syntax here } ❱;
|
/// macro_call! ❰ { my syntax here } ❱;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue