mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 04:53:34 +00:00
Convert TODO to a Note(matklad)
This commit is contained in:
parent
65b380fa8d
commit
51edfbaffe
2 changed files with 2 additions and 1 deletions
|
@ -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) }
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue