Convert TODO to a Note(matklad)

This commit is contained in:
veetaha 2020-05-12 23:50:52 +03:00
parent 65b380fa8d
commit 51edfbaffe
2 changed files with 2 additions and 1 deletions

View file

@ -844,6 +844,7 @@ pub struct LambdaExpr {
} }
impl ast::AttrsOwner for LambdaExpr {} impl ast::AttrsOwner for LambdaExpr {}
impl LambdaExpr { impl LambdaExpr {
pub fn static_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![static]) }
pub fn async_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![async]) } pub fn async_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![async]) }
pub fn move_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![move]) } pub fn move_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![move]) }
pub fn param_list(&self) -> Option<ParamList> { support::child(&self.syntax) } pub fn param_list(&self) -> Option<ParamList> { support::child(&self.syntax) }

View file

@ -890,7 +890,7 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
/// ///
/// [Reference](https://doc.rust-lang.org/reference/expressions/closure-expr.html) /// [Reference](https://doc.rust-lang.org/reference/expressions/closure-expr.html)
struct LambdaExpr: AttrsOwner { 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![async],
T![move], T![move],
ParamList, ParamList,