mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Revert "Remove MacroStmts as per edwin0cheng" (cc @edwin0cheng) and add a fixme to document it.
This reverts commit 7a49165f5d
.
MacroStmts ast node is not used by itself, but it pertains
to SyntaxNodeKind MACRO_STMTS that is used by ra_paser, so
even tho the node itself is not used, it is better to keep it
with a FIXME to actually add a doc comment when it becomes useful.
This commit is contained in:
parent
24b27abf9f
commit
55a29982c0
2 changed files with 45 additions and 0 deletions
|
@ -2016,6 +2016,19 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
|
|||
/// [Reference](https://doc.rust-lang.org/reference/macros.html)
|
||||
struct MacroItems: ModuleItemOwner { }
|
||||
|
||||
/// FIXME: (@edwin0cheng) add some documentation here. As per the writing
|
||||
/// of this comment this ast node is not used.
|
||||
///
|
||||
/// ```
|
||||
/// // FIXME: example here
|
||||
/// ```
|
||||
///
|
||||
/// [Reference](https://doc.rust-lang.org/reference/macros.html)
|
||||
struct MacroStmts {
|
||||
statements: [Stmt],
|
||||
Expr,
|
||||
}
|
||||
|
||||
/// List of items in an extern block.
|
||||
///
|
||||
/// ```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue