mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Revert "Merge #4233"
This reverts commita5f2b16366
, reversing changes made toc96b2180c1
.
This commit is contained in:
parent
a984587c47
commit
fd030f9450
9 changed files with 63 additions and 30 deletions
|
@ -162,6 +162,7 @@ pub(crate) const KINDS_SRC: KindsSrc = KindsSrc {
|
|||
"RECORD_LIT",
|
||||
"RECORD_FIELD_LIST",
|
||||
"RECORD_FIELD",
|
||||
"TRY_BLOCK_EXPR",
|
||||
"BOX_EXPR",
|
||||
// postfix
|
||||
"CALL_EXPR",
|
||||
|
@ -439,6 +440,7 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
|
|||
}
|
||||
struct IfExpr: AttrsOwner { T![if], Condition }
|
||||
struct LoopExpr: AttrsOwner, LoopBodyOwner { T![loop] }
|
||||
struct TryBlockExpr: AttrsOwner { T![try], body: BlockExpr }
|
||||
struct ForExpr: AttrsOwner, LoopBodyOwner {
|
||||
T![for],
|
||||
Pat,
|
||||
|
@ -449,7 +451,7 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
|
|||
struct ContinueExpr: AttrsOwner { T![continue], T![lifetime] }
|
||||
struct BreakExpr: AttrsOwner { T![break], T![lifetime], Expr }
|
||||
struct Label { T![lifetime] }
|
||||
struct BlockExpr: AttrsOwner { Label, T![unsafe], T![async], Block }
|
||||
struct BlockExpr: AttrsOwner { Label, T![unsafe], T![async], Block }
|
||||
struct ReturnExpr: AttrsOwner { Expr }
|
||||
struct CallExpr: ArgListOwner { Expr }
|
||||
struct MethodCallExpr: AttrsOwner, ArgListOwner {
|
||||
|
@ -720,6 +722,7 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
|
|||
FieldExpr,
|
||||
AwaitExpr,
|
||||
TryExpr,
|
||||
TryBlockExpr,
|
||||
CastExpr,
|
||||
RefExpr,
|
||||
PrefixExpr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue