/dports/java/apache-bcel/bcel-6.4.1/src/examples/Mini/ |
H A D | ASTIfExpr.java | 34 private ASTExpr if_expr, then_expr, else_expr; field in ASTIfExpr 56 then_expr = (ASTExpr)children[1]; in closeNode() 76 then_expr = then_expr.traverse(env); in traverse() 101 then_type=then_expr.eval(expected); in eval() 104 MiniC.addError(then_expr.getLine(), then_expr.getColumn(), in eval() 118 then_expr.setType(else_type); in eval() 123 else_expr = then_expr; in eval() 134 is_simple = if_expr.isSimple() && then_expr.isSimple() && else_expr.isSimple(); in eval() 148 then_expr.code(buf); in code() 165 then_expr.byte_code(then_code, method, cp); in byte_code() [all …]
|
/dports/lang/rust/rustc-1.58.1-src/src/tools/clippy/clippy_lints/src/ |
H A D | entry.rs | 67 let (cond_expr, then_expr, else_expr) = match higher::If::hir(expr) { in check_expr() 77 let then_search = match find_insert_calls(cx, &contains_expr, then_expr) { in check_expr() 98 then_search.snippet_vacant(cx, then_expr.span, &mut app), in check_expr() 102 then_search.snippet_occupied(cx, then_expr.span, &mut app), in check_expr() 107 snippet_with_applicability(cx, then_expr.span, "{ .. }", &mut app), in check_expr() 127 then_search.snippet_vacant(cx, then_expr.span, &mut app), in check_expr() 132 then_search.snippet_occupied(cx, then_expr.span, &mut app), in check_expr() 160 then_search.snippet_vacant(cx, then_expr.span, &mut app) in check_expr() 162 then_search.snippet_occupied(cx, then_expr.span, &mut app) in check_expr() 471 ExprKind::If(cond_expr, then_expr, Some(else_expr)) => { in visit_expr() [all …]
|
H A D | if_then_some_else_none.rs | 75 if let Some(then_expr) = then_block.expr; in check_expr() 76 if let ExprKind::Call(then_call, [then_arg]) = then_expr.kind; in check_expr()
|
H A D | implicit_return.rs | 117 ExprKind::If(_, then_expr, Some(else_expr)) => { in lint_implicit_returns() 120 …let res = lint_implicit_returns(cx, then_expr, ctxt, call_site_span).still_parent(call_site_span.i… in lint_implicit_returns()
|
/dports/devel/zls/zls-0.9.0/src/ |
H A D | ast.zig | 132 // then_expr else |x| 148 .then_expr = extra.then_expr, 156 .then_expr = data.rhs, 188 // then_expr else |x| 204 .then_expr = data.rhs, 216 .then_expr = extra.then_expr, 228 .then_expr = extra.then_expr, 239 .then_expr = data.rhs, 251 .then_expr = extra.then_expr, 849 std.debug.assert(extra.then_expr != 0); [all …]
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_typeck/src/check/ |
H A D | _match.rs | 247 then_expr: &'tcx hir::Expr<'tcx>, in if_fallback_coercion() 255 let ret_reason = self.maybe_get_coercion_reason(then_expr.hir_id, span); in if_fallback_coercion() 264 } else if let ExprKind::Block(block, _) = &then_expr.kind { in if_fallback_coercion() 311 then_expr: &'tcx hir::Expr<'tcx>, in if_cause() 386 let then_sp = if let ExprKind::Block(block, _) = &then_expr.kind { in if_cause() 395 then_expr.span in if_cause()
|
H A D | expr.rs | 323 ExprKind::If(cond, then_expr, opt_else_expr) => { in check_expr_kind() 324 self.check_then_else(cond, then_expr, opt_else_expr, expr.span, expected) in check_expr_kind() 904 then_expr: &'tcx hir::Expr<'tcx>, in check_then_else() 913 then_expr.span, in check_then_else() 921 let then_ty = self.check_expr_with_expectation(then_expr, expected); in check_then_else() 934 coerce.coerce(self, &self.misc(sp), then_expr, then_ty); in check_then_else() 962 self.if_cause(sp, then_expr, else_expr, then_ty, else_ty, opt_suggest_box_span); in check_then_else() 969 self.if_fallback_coercion(sp, then_expr, &mut coerce); in check_then_else()
|
/dports/www/grafana8/grafana-8.3.6/vendor/github.com/apache/arrow/rust/datafusion/src/logical_plan/ |
H A D | expr.rs | 595 then_expr: Vec<Expr>, field 602 self.then_expr.push(then); in when() 606 then_expr: self.then_expr.clone(), in when() 623 let mut then_expr = self.then_expr.clone(); in build() localVariable 625 then_expr.push(e.as_ref().to_owned()); in build() 628 let then_types: Vec<DataType> = then_expr in build() 653 .zip(self.then_expr.iter()) in build() 666 then_expr: vec![], in case() 676 then_expr: vec![then], in when()
|
/dports/lang/zig-devel/zig-0.9.0/lib/std/zig/ |
H A D | parse.zig | 1017 .then_expr = then_expr, 1110 .then_expr = then_expr, 1187 .then_expr = then_expr, 1202 .then_expr = then_expr, 1967 .then_expr = then_expr, 2003 .then_expr = then_expr, 2018 .then_expr = then_expr, 2658 .then_expr = then_expr, 2694 .then_expr = then_expr, 2709 .then_expr = then_expr, [all …]
|
H A D | Ast.zig | 1234 .then_expr = data.rhs, 1246 .then_expr = extra.then_expr, 1739 .then_expr = data.rhs, 1751 .then_expr = extra.then_expr, 1763 .then_expr = extra.then_expr, 1786 .then_expr = extra.then_expr, 1852 // then_expr else |x| 2082 // then_expr else |x| 2990 then_expr: Index, 3024 then_expr: Index, [all …]
|
/dports/lang/zig/zig-0.9.0/lib/std/zig/ |
H A D | parse.zig | 1017 .then_expr = then_expr, 1110 .then_expr = then_expr, 1187 .then_expr = then_expr, 1202 .then_expr = then_expr, 1967 .then_expr = then_expr, 2003 .then_expr = then_expr, 2018 .then_expr = then_expr, 2658 .then_expr = then_expr, 2694 .then_expr = then_expr, 2709 .then_expr = then_expr, [all …]
|
H A D | Ast.zig | 1234 .then_expr = data.rhs, 1246 .then_expr = extra.then_expr, 1739 .then_expr = data.rhs, 1751 .then_expr = extra.then_expr, 1763 .then_expr = extra.then_expr, 1786 .then_expr = extra.then_expr, 1852 // then_expr else |x| 2082 // then_expr else |x| 2990 then_expr: Index, 3024 then_expr: Index, [all …]
|
/dports/lang/rust/rustc-1.58.1-src/src/tools/rust-analyzer/crates/ide_assists/src/handlers/ |
H A D | move_guard.rs | 140 Some(then_expr) if then_only_expr => { in move_arm_cond_to_match_guard() 141 edit.replace(replace_node.text_range(), then_expr.syntax().text()) in move_arm_cond_to_match_guard()
|
H A D | replace_if_let_with_match.rs | 195 let (if_let_pat, then_expr, else_expr) = pick_pattern_and_expr_order( in replace_match_with_if_let() 211 let then_block = match then_expr.reset_indent() { in replace_match_with_if_let()
|
/dports/devel/rust-analyzer/rust-analyzer-2021-12-20/crates/ide_assists/src/handlers/ |
H A D | move_guard.rs | 137 Some(then_expr) if then_only_expr => { in move_arm_cond_to_match_guard() 138 edit.replace(replace_node.text_range(), then_expr.syntax().text()); in move_arm_cond_to_match_guard()
|
H A D | replace_if_let_with_match.rs | 195 let (if_let_pat, then_expr, else_expr) = pick_pattern_and_expr_order( in replace_match_with_if_let() 211 let then_block = match then_expr.reset_indent() { in replace_match_with_if_let()
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_mir_build/src/build/expr/ |
H A D | into.rs | 57 let then_expr = &this.thir[then]; in expr_into_dest() localVariable 58 let then_source_info = this.source_info(then_expr.span); in expr_into_dest() 73 then_expr.span, in expr_into_dest() 75 this.expr_into_dest(destination, then_blk, then_expr) in expr_into_dest()
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_ast_lowering/src/ |
H A D | block.rs | 159 let then_expr = { in lower_let_else() localVariable 172 kind: hir::ExprKind::If(let_expr, then_expr, Some(else_expr)), in lower_let_else()
|
/dports/devel/hs-haskell-language-server/haskell-language-server-1.4.0/_cabal_deps/ghc-lib-parser-8.10.7.20210828/compiler/coreSyn/ |
H A D | MkCore.hs | 223 mkIfThenElse guard then_expr else_expr 225 = mkWildCase guard boolTy (exprType then_expr) 227 (DataAlt trueDataCon, [], then_expr) ]
|
/dports/math/curv/curv-0.5/libcurv/ |
H A D | parser.cc | 267 auto then_expr = parse_ritem(scanner); in parse_ritem() local 272 tok, condition, then_expr, Token{}, nullptr); in parse_ritem() 276 tok, condition, then_expr, tok2, else_expr); in parse_ritem()
|
/dports/lang/ghc/ghc-8.10.7/compiler/coreSyn/ |
H A D | MkCore.hs | 223 mkIfThenElse guard then_expr else_expr 225 = mkWildCase guard boolTy (exprType then_expr) 227 (DataAlt trueDataCon, [], then_expr) ]
|
/dports/devel/hs-ormolu/ormolu-0.4.0.0/_cabal_deps/ghc-lib-parser-9.2.1.20211101/compiler/GHC/Core/ |
H A D | Make.hs | 234 mkIfThenElse guard then_expr else_expr 236 = mkWildCase guard (linear boolTy) (exprType then_expr) 238 Alt (DataAlt trueDataCon) [] then_expr ]
|
/dports/devel/hs-hlint/hlint-3.3.4/_cabal_deps/ghc-lib-parser-9.0.1.20210324/compiler/GHC/Core/ |
H A D | Make.hs | 228 mkIfThenElse guard then_expr else_expr 230 = mkWildCase guard (linear boolTy) (exprType then_expr) 232 (DataAlt trueDataCon, [], then_expr) ]
|
/dports/lang/qmasm/qmasm-4.1/src/qmasm/ |
H A D | assertions.py | 350 then_expr = self.expression() 354 return AST(self.qmasm, "if_expr", None, [cond, then_expr, else_expr])
|
/dports/lang/ghc/ghc-8.10.7/compiler/deSugar/ |
H A D | DsExpr.hs | 479 ds_expr _ (HsIf _ mb_fun guard_expr then_expr else_expr) 481 ; b1 <- dsLExpr then_expr 942 go _ (BodyStmt _ rhs then_expr _) stmts 946 ; dsSyntaxExpr then_expr [rhs2, rest] }
|