From 51edfbaffe15b08090d2f9956939988074b3c224 Mon Sep 17 00:00:00 2001 From: veetaha Date: Tue, 12 May 2020 23:50:52 +0300 Subject: Convert TODO to a Note(matklad) --- crates/ra_syntax/src/ast/generated/nodes.rs | 1 + xtask/src/ast_src.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/ra_syntax/src/ast/generated/nodes.rs b/crates/ra_syntax/src/ast/generated/nodes.rs index 05b197772..a25646c6b 100644 --- a/crates/ra_syntax/src/ast/generated/nodes.rs +++ b/crates/ra_syntax/src/ast/generated/nodes.rs @@ -844,6 +844,7 @@ pub struct LambdaExpr { } impl ast::AttrsOwner for LambdaExpr {} impl LambdaExpr { + pub fn static_token(&self) -> Option { support::token(&self.syntax, T![static]) } pub fn async_token(&self) -> Option { support::token(&self.syntax, T![async]) } pub fn move_token(&self) -> Option { support::token(&self.syntax, T![move]) } pub fn param_list(&self) -> Option { support::child(&self.syntax) } diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs index bebac4a15..2b9c24677 100644 --- a/xtask/src/ast_src.rs +++ b/xtask/src/ast_src.rs @@ -890,7 +890,7 @@ pub(crate) const AST_SRC: AstSrc = AstSrc { /// /// [Reference](https://doc.rust-lang.org/reference/expressions/closure-expr.html) struct LambdaExpr: AttrsOwner { - // T![static], // TODO: what's this? + T![static], // Note(@matklad): I belive this is (used to be?) syntax for generators T![async], T![move], ParamList, -- cgit v1.2.3