Home
last modified time | relevance | path

Searched defs:BlockExpr (Results 1 – 14 of 14) sorted by relevance

/third_party/rust/rust/src/tools/rust-analyzer/crates/syntax/src/validation/
Dblock.rs9 pub(crate) fn validate_block_expr(block: ast::BlockExpr, errors: &mut Vec<SyntaxError>) { in validate_block_expr()
/third_party/rust/rust/src/tools/rust-analyzer/crates/ide-assists/src/handlers/
Dmove_guard.rs195 fn parse_if_chain(if_expr: IfExpr) -> Option<(Vec<(Expr, BlockExpr)>, Option<BlockExpr>)> { in parse_if_chain() argument
Dreplace_if_let_with_match.rs152 else_block: Option<ast::BlockExpr>, in make_else_arm()
153 conditionals: &[(Either<ast::Pat, ast::Expr>, ast::BlockExpr)], in make_else_arm()
256 fn make_block_expr(expr: ast::Expr) -> ast::BlockExpr { in replace_match_with_if_let()
Dconvert_bool_then.rs276 block: &ast::BlockExpr, in block_is_none_variant()
Dextract_function.rs1728 ) -> ast::BlockExpr { in make_body()
1852 fn map_tail_expr(block: ast::BlockExpr, f: impl FnOnce(ast::Expr) -> ast::Expr) -> ast::BlockExpr { in map_tail_expr()
1860 fn with_default_tail_expr(block: ast::BlockExpr, tail_expr: ast::Expr) -> ast::BlockExpr { in with_default_tail_expr()
1867 fn with_tail_expr(block: ast::BlockExpr, tail_expr: ast::Expr) -> ast::BlockExpr { in with_tail_expr()
/third_party/rust/rust/src/tools/rust-analyzer/crates/syntax/src/ast/
Dmake.rs438 ) -> ast::BlockExpr { in block_expr()
450 pub fn tail_only_block_expr(tail_expr: ast::Expr) -> ast::BlockExpr { in tail_only_block_expr()
461 ) -> ast::BlockExpr { in hacky_block_expr()
540 then_branch: ast::BlockExpr, in expr_if()
797 diverging: ast::BlockExpr, in let_else_stmt()
941 body: ast::BlockExpr, in fn_()
Dexpr_ext.rs62 pub fn then_branch(&self) -> Option<ast::BlockExpr> { in then_branch()
349 impl ast::BlockExpr { implementation
Dtraits.rs25 fn loop_body(&self) -> Option<ast::BlockExpr> { in loop_body()
Dnode_ext.rs56 impl ast::BlockExpr { implementation
898 fn loop_body(&self) -> Option<ast::BlockExpr> { in loop_body()
920 fn loop_body(&self) -> Option<ast::BlockExpr> { in loop_body()
Dedit_in_place.rs509 pub fn get_or_create_body(&self) -> ast::BlockExpr { in get_or_create_body()
/third_party/rust/rust/src/tools/rust-analyzer/crates/ide/src/typing/
Don_enter.rs123 fn on_enter_in_block(block: ast::BlockExpr, position: FilePosition) -> Option<TextEdit> { in on_enter_in_block()
/third_party/rust/rust/src/tools/rust-analyzer/crates/hir-def/src/
Dnameres.rs225 BlockExpr { enumerator
642 BlockExpr(ast::BlockExpr), enumerator
/third_party/rust/rust/src/tools/rust-analyzer/crates/hir-def/src/body/
Dlower.rs1073 block: ast::BlockExpr, in collect_block_()
1140 expr: Option<ast::BlockExpr>, in collect_labelled_block_opt()
/third_party/rust/rust/src/tools/rust-analyzer/crates/syntax/src/ast/generated/
Dnodes.rs298 pub fn body(&self) -> Option<BlockExpr> { support::child(&self.syntax) } in body()
558 pub struct BlockExpr { struct
561 impl ast::HasAttrs for BlockExpr {} implementation
562 impl BlockExpr { implementation
777 pub fn block_expr(&self) -> Option<BlockExpr> { support::child(&self.syntax) } in block_expr()
1490 pub fn block_expr(&self) -> Option<BlockExpr> { support::child(&self.syntax) } in block_expr()
1546 BlockExpr(BlockExpr), enumerator
2211 impl AstNode for BlockExpr { implementation
4493 impl std::fmt::Display for BlockExpr { implementation