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:
veetaha 2020-05-12 23:33:56 +03:00
parent 24b27abf9f
commit 55a29982c0
2 changed files with 45 additions and 0 deletions

View file

@ -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.
///
/// ```