StmtKind
This commit is contained in:
parent
12ded030b6
commit
8cf463fe93
23 changed files with 66 additions and 66 deletions
|
|
@ -1,5 +1,5 @@
|
|||
if_chain! {
|
||||
if let Stmt_::StmtDecl(ref decl, _) = stmt.node
|
||||
if let StmtKind::Decl(ref decl, _) = stmt.node
|
||||
if let Decl_::DeclLocal(ref local) = decl.node;
|
||||
if let Some(ref init) = local.init
|
||||
if let ExprKind::Cast(ref expr, ref cast_ty) = init.node;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
if_chain! {
|
||||
if let Stmt_::StmtDecl(ref decl, _) = stmt.node
|
||||
if let StmtKind::Decl(ref decl, _) = stmt.node
|
||||
if let Decl_::DeclLocal(ref local) = decl.node;
|
||||
if let Some(ref init) = local.init
|
||||
if let ExprKind::Call(ref func, ref args) = init.node;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
if_chain! {
|
||||
if let ExprKind::Block(ref block) = expr.node;
|
||||
if let Stmt_::StmtDecl(ref decl, _) = block.node
|
||||
if let StmtKind::Decl(ref decl, _) = block.node
|
||||
if let Decl_::DeclLocal(ref local) = decl.node;
|
||||
if let Some(ref init) = local.init
|
||||
if let ExprKind::Match(ref expr, ref arms, MatchSource::ForLoopDesugar) = init.node;
|
||||
|
|
@ -14,11 +14,11 @@ if_chain! {
|
|||
// unimplemented: field checks
|
||||
if arms.len() == 1;
|
||||
if let ExprKind::Loop(ref body, ref label, LoopSource::ForLoop) = arms[0].body.node;
|
||||
if let Stmt_::StmtDecl(ref decl1, _) = body.node
|
||||
if let StmtKind::Decl(ref decl1, _) = body.node
|
||||
if let Decl_::DeclLocal(ref local1) = decl1.node;
|
||||
if let PatKind::Binding(BindingAnnotation::Mutable, _, name, None) = local1.pat.node;
|
||||
if name.node.as_str() == "__next";
|
||||
if let Stmt_::StmtExpr(ref e, _) = local1.pat.node
|
||||
if let StmtKind::Expr(ref e, _) = local1.pat.node
|
||||
if let ExprKind::Match(ref expr1, ref arms1, MatchSource::ForLoopDesugar) = e.node;
|
||||
if let ExprKind::Call(ref func1, ref args1) = expr1.node;
|
||||
if let ExprKind::Path(ref path2) = func1.node;
|
||||
|
|
@ -42,16 +42,16 @@ if_chain! {
|
|||
if arms1[1].pats.len() == 1;
|
||||
if let PatKind::Path(ref path7) = arms1[1].pats[0].node;
|
||||
if match_qpath(path7, &["{{root}}", "std", "option", "Option", "None"]);
|
||||
if let Stmt_::StmtDecl(ref decl2, _) = path7.node
|
||||
if let StmtKind::Decl(ref decl2, _) = path7.node
|
||||
if let Decl_::DeclLocal(ref local2) = decl2.node;
|
||||
if let Some(ref init1) = local2.init
|
||||
if let ExprKind::Path(ref path8) = init1.node;
|
||||
if match_qpath(path8, &["__next"]);
|
||||
if let PatKind::Binding(BindingAnnotation::Unannotated, _, name1, None) = local2.pat.node;
|
||||
if name1.node.as_str() == "y";
|
||||
if let Stmt_::StmtExpr(ref e1, _) = local2.pat.node
|
||||
if let StmtKind::Expr(ref e1, _) = local2.pat.node
|
||||
if let ExprKind::Block(ref block1) = e1.node;
|
||||
if let Stmt_::StmtDecl(ref decl3, _) = block1.node
|
||||
if let StmtKind::Decl(ref decl3, _) = block1.node
|
||||
if let Decl_::DeclLocal(ref local3) = decl3.node;
|
||||
if let Some(ref init2) = local3.init
|
||||
if let ExprKind::Path(ref path9) = init2.node;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
if_chain! {
|
||||
if let Stmt_::StmtDecl(ref decl, _) = stmt.node
|
||||
if let StmtKind::Decl(ref decl, _) = stmt.node
|
||||
if let Decl_::DeclLocal(ref local) = decl.node;
|
||||
if let Some(ref init) = local.init
|
||||
if let ExprKind::Match(ref expr, ref arms, MatchSource::Normal) = init.node;
|
||||
|
|
@ -13,7 +13,7 @@ if_chain! {
|
|||
if let ExprKind::Lit(ref lit2) = lit_expr.node;
|
||||
if let LitKind::Int(16, _) = lit2.node;
|
||||
if let ExprKind::Block(ref block) = arms[1].body.node;
|
||||
if let Stmt_::StmtDecl(ref decl1, _) = block.node
|
||||
if let StmtKind::Decl(ref decl1, _) = block.node
|
||||
if let Decl_::DeclLocal(ref local1) = decl1.node;
|
||||
if let Some(ref init1) = local1.init
|
||||
if let ExprKind::Lit(ref lit3) = init1.node;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue