aboutsummaryrefslogtreecommitdiff
path: root/xtask
diff options
context:
space:
mode:
authorveetaha <[email protected]>2020-05-12 21:33:56 +0100
committerveetaha <[email protected]>2020-05-12 21:45:29 +0100
commit55a29982c014a57867a540ccc0161ef983cfcf46 (patch)
tree940da5c636928e33aa19b195ba7312d3f4d88cbc /xtask
parent24b27abf9f3a57268d0fb7c9a1aa2ede2980195f (diff)
Revert "Remove MacroStmts as per edwin0cheng" (cc @edwin0cheng) and add a fixme to document it.
This reverts commit 7a49165f5d5c8186edd04f874eae8a98e39d3df6. 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.
Diffstat (limited to 'xtask')
-rw-r--r--xtask/src/ast_src.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs
index 79e5a608d..80b6967b8 100644
--- a/xtask/src/ast_src.rs
+++ b/xtask/src/ast_src.rs
@@ -2016,6 +2016,19 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
2016 /// [Reference](https://doc.rust-lang.org/reference/macros.html) 2016 /// [Reference](https://doc.rust-lang.org/reference/macros.html)
2017 struct MacroItems: ModuleItemOwner { } 2017 struct MacroItems: ModuleItemOwner { }
2018 2018
2019 /// FIXME: (@edwin0cheng) add some documentation here. As per the writing
2020 /// of this comment this ast node is not used.
2021 ///
2022 /// ```
2023 /// // FIXME: example here
2024 /// ```
2025 ///
2026 /// [Reference](https://doc.rust-lang.org/reference/macros.html)
2027 struct MacroStmts {
2028 statements: [Stmt],
2029 Expr,
2030 }
2031
2019 /// List of items in an extern block. 2032 /// List of items in an extern block.
2020 /// 2033 ///
2021 /// ``` 2034 /// ```