File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
crates/ra_syntax/src/ast/generated Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -844,6 +844,7 @@ pub struct LambdaExpr {
844844}
845845impl ast:: AttrsOwner for LambdaExpr { }
846846impl LambdaExpr {
847+ pub fn static_token ( & self ) -> Option < SyntaxToken > { support:: token ( & self . syntax , T ! [ static ] ) }
847848 pub fn async_token ( & self ) -> Option < SyntaxToken > { support:: token ( & self . syntax , T ! [ async ] ) }
848849 pub fn move_token ( & self ) -> Option < SyntaxToken > { support:: token ( & self . syntax , T ! [ move] ) }
849850 pub fn param_list ( & self ) -> Option < ParamList > { support:: child ( & self . syntax ) }
Original file line number Diff line number Diff line change @@ -890,7 +890,7 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
890890 ///
891891 /// [Reference](https://doc.rust-lang.org/reference/expressions/closure-expr.html)
892892 struct LambdaExpr : AttrsOwner {
893- // T![static], // TODO: what's this?
893+ T ![ static ] , // Note(@matklad): I belive this is (used to be?) syntax for generators
894894 T ![ async ] ,
895895 T ![ move] ,
896896 ParamList ,
You can’t perform that action at this time.
0 commit comments