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 {
844
844
}
845
845
impl ast:: AttrsOwner for LambdaExpr { }
846
846
impl LambdaExpr {
847
+ pub fn static_token ( & self ) -> Option < SyntaxToken > { support:: token ( & self . syntax , T ! [ static ] ) }
847
848
pub fn async_token ( & self ) -> Option < SyntaxToken > { support:: token ( & self . syntax , T ! [ async ] ) }
848
849
pub fn move_token ( & self ) -> Option < SyntaxToken > { support:: token ( & self . syntax , T ! [ move] ) }
849
850
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 {
890
890
///
891
891
/// [Reference](https://doc.rust-lang.org/reference/expressions/closure-expr.html)
892
892
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
894
894
T ![ async ] ,
895
895
T ![ move] ,
896
896
ParamList ,
You can’t perform that action at this time.
0 commit comments