From 633aace41108b74fe6c93c5ab04272067db033f9 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 31 Jul 2020 17:08:58 +0200 Subject: Rename LambdaExpr -> ClosureExpr --- .../test_data/parser/err/0010_unsafe_lambda_block.rast | 2 +- .../ra_syntax/test_data/parser/err/0012_broken_lambda.rast | 2 +- .../test_data/parser/err/0039_lambda_recovery.rast | 2 +- .../test_data/parser/inline/ok/0106_lambda_expr.rast | 14 +++++++------- .../test_data/parser/inline/ok/0130_let_stmt.rast | 2 +- .../test_data/parser/inline/ok/0155_closure_params.rast | 2 +- .../test_data/parser/inline/ok/0158_lambda_ret_block.rast | 2 +- crates/ra_syntax/test_data/parser/ok/0035_weird_exprs.rast | 4 ++-- crates/ra_syntax/test_data/parser/ok/0044_let_attrs.rast | 2 +- 9 files changed, 16 insertions(+), 16 deletions(-) (limited to 'crates/ra_syntax/test_data') diff --git a/crates/ra_syntax/test_data/parser/err/0010_unsafe_lambda_block.rast b/crates/ra_syntax/test_data/parser/err/0010_unsafe_lambda_block.rast index 1c3e0f65b..e0f1d0c27 100644 --- a/crates/ra_syntax/test_data/parser/err/0010_unsafe_lambda_block.rast +++ b/crates/ra_syntax/test_data/parser/err/0010_unsafe_lambda_block.rast @@ -12,7 +12,7 @@ SOURCE_FILE@0..42 L_CURLY@10..11 "{" WHITESPACE@11..16 "\n " EXPR_STMT@16..24 - LAMBDA_EXPR@16..24 + CLOSURE_EXPR@16..24 PARAM_LIST@16..18 PIPE@16..17 "|" PIPE@17..18 "|" diff --git a/crates/ra_syntax/test_data/parser/err/0012_broken_lambda.rast b/crates/ra_syntax/test_data/parser/err/0012_broken_lambda.rast index d62906b99..0afa24b77 100644 --- a/crates/ra_syntax/test_data/parser/err/0012_broken_lambda.rast +++ b/crates/ra_syntax/test_data/parser/err/0012_broken_lambda.rast @@ -117,7 +117,7 @@ SOURCE_FILE@0..389 WHITESPACE@140..141 EQ@141..142 WHITESPACE@142..143 - LAMBDA_EXPR@143..389 + CLOSURE_EXPR@143..389 PARAM_LIST@143..388 PIPE@143..144 PARAM@144..159 diff --git a/crates/ra_syntax/test_data/parser/err/0039_lambda_recovery.rast b/crates/ra_syntax/test_data/parser/err/0039_lambda_recovery.rast index a98c31b0c..0678d4278 100644 --- a/crates/ra_syntax/test_data/parser/err/0039_lambda_recovery.rast +++ b/crates/ra_syntax/test_data/parser/err/0039_lambda_recovery.rast @@ -49,7 +49,7 @@ SOURCE_FILE@0..83 IDENT@48..51 "map" ARG_LIST@51..57 L_PAREN@51..52 "(" - LAMBDA_EXPR@52..56 + CLOSURE_EXPR@52..56 PARAM_LIST@52..56 PIPE@52..53 "|" PARAM@53..55 diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0106_lambda_expr.rast b/crates/ra_syntax/test_data/parser/inline/ok/0106_lambda_expr.rast index 51a6c5170..a80d79563 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0106_lambda_expr.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0106_lambda_expr.rast @@ -12,7 +12,7 @@ SOURCE_FILE@0..134 L_CURLY@9..10 "{" WHITESPACE@10..15 "\n " EXPR_STMT@15..21 - LAMBDA_EXPR@15..20 + CLOSURE_EXPR@15..20 PARAM_LIST@15..17 PIPE@15..16 "|" PIPE@16..17 "|" @@ -23,7 +23,7 @@ SOURCE_FILE@0..134 SEMICOLON@20..21 ";" WHITESPACE@21..26 "\n " EXPR_STMT@26..43 - LAMBDA_EXPR@26..42 + CLOSURE_EXPR@26..42 PARAM_LIST@26..28 PIPE@26..27 "|" PIPE@27..28 "|" @@ -47,7 +47,7 @@ SOURCE_FILE@0..134 SEMICOLON@42..43 ";" WHITESPACE@43..48 "\n " EXPR_STMT@48..54 - LAMBDA_EXPR@48..53 + CLOSURE_EXPR@48..53 PARAM_LIST@48..51 PIPE@48..49 "|" PARAM@49..50 @@ -64,7 +64,7 @@ SOURCE_FILE@0..134 SEMICOLON@53..54 ";" WHITESPACE@54..59 "\n " EXPR_STMT@59..76 - LAMBDA_EXPR@59..75 + CLOSURE_EXPR@59..75 MOVE_KW@59..63 "move" WHITESPACE@63..64 " " PARAM_LIST@64..73 @@ -91,7 +91,7 @@ SOURCE_FILE@0..134 SEMICOLON@75..76 ";" WHITESPACE@76..81 "\n " EXPR_STMT@81..93 - LAMBDA_EXPR@81..92 + CLOSURE_EXPR@81..92 ASYNC_KW@81..86 "async" WHITESPACE@86..87 " " PARAM_LIST@87..89 @@ -104,7 +104,7 @@ SOURCE_FILE@0..134 SEMICOLON@92..93 ";" WHITESPACE@93..98 "\n " EXPR_STMT@98..109 - LAMBDA_EXPR@98..108 + CLOSURE_EXPR@98..108 MOVE_KW@98..102 "move" WHITESPACE@102..103 " " PARAM_LIST@103..105 @@ -117,7 +117,7 @@ SOURCE_FILE@0..134 SEMICOLON@108..109 ";" WHITESPACE@109..114 "\n " EXPR_STMT@114..131 - LAMBDA_EXPR@114..130 + CLOSURE_EXPR@114..130 ASYNC_KW@114..119 "async" WHITESPACE@119..120 " " MOVE_KW@120..124 "move" diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0130_let_stmt.rast b/crates/ra_syntax/test_data/parser/inline/ok/0130_let_stmt.rast index 931e81f27..d2fd6e567 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0130_let_stmt.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0130_let_stmt.rast @@ -105,7 +105,7 @@ SOURCE_FILE@0..135 WHITESPACE@117..118 " " EQ@118..119 "=" WHITESPACE@119..120 " " - LAMBDA_EXPR@120..131 + CLOSURE_EXPR@120..131 ATTR@120..127 POUND@120..121 "#" L_BRACK@121..122 "[" diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0155_closure_params.rast b/crates/ra_syntax/test_data/parser/inline/ok/0155_closure_params.rast index c63a55a56..0a9f7c137 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0155_closure_params.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0155_closure_params.rast @@ -20,7 +20,7 @@ SOURCE_FILE@0..63 WHITESPACE@22..23 " " EQ@23..24 "=" WHITESPACE@24..25 " " - LAMBDA_EXPR@25..59 + CLOSURE_EXPR@25..59 PARAM_LIST@25..56 PIPE@25..26 "|" PARAM@26..29 diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0158_lambda_ret_block.rast b/crates/ra_syntax/test_data/parser/inline/ok/0158_lambda_ret_block.rast index 9c071ec2e..aa4099a92 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0158_lambda_ret_block.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0158_lambda_ret_block.rast @@ -13,7 +13,7 @@ SOURCE_FILE@0..34 WHITESPACE@11..12 " " EXPR_STMT@12..31 CALL_EXPR@12..30 - LAMBDA_EXPR@12..28 + CLOSURE_EXPR@12..28 PARAM_LIST@12..14 PIPE@12..13 "|" PIPE@13..14 "|" diff --git a/crates/ra_syntax/test_data/parser/ok/0035_weird_exprs.rast b/crates/ra_syntax/test_data/parser/ok/0035_weird_exprs.rast index 66cd5727a..1d75ed08f 100644 --- a/crates/ra_syntax/test_data/parser/ok/0035_weird_exprs.rast +++ b/crates/ra_syntax/test_data/parser/ok/0035_weird_exprs.rast @@ -351,7 +351,7 @@ SOURCE_FILE@0..3813 WHITESPACE@766..767 " " BLOCK_EXPR@767..777 L_CURLY@767..768 "{" - LAMBDA_EXPR@768..776 + CLOSURE_EXPR@768..776 PARAM_LIST@768..770 PIPE@768..769 "|" PIPE@769..770 "|" @@ -1628,7 +1628,7 @@ SOURCE_FILE@0..3813 CALL_EXPR@2950..2995 PAREN_EXPR@2950..2971 L_PAREN@2950..2951 "(" - LAMBDA_EXPR@2951..2970 + CLOSURE_EXPR@2951..2970 PARAM_LIST@2951..2968 PIPE@2951..2952 "|" PARAM@2952..2962 diff --git a/crates/ra_syntax/test_data/parser/ok/0044_let_attrs.rast b/crates/ra_syntax/test_data/parser/ok/0044_let_attrs.rast index c9e6d88eb..650f4e310 100644 --- a/crates/ra_syntax/test_data/parser/ok/0044_let_attrs.rast +++ b/crates/ra_syntax/test_data/parser/ok/0044_let_attrs.rast @@ -52,7 +52,7 @@ SOURCE_FILE@0..166 IDENT@134..146 "catch_unwind" ARG_LIST@146..162 L_PAREN@146..147 "(" - LAMBDA_EXPR@147..161 + CLOSURE_EXPR@147..161 MOVE_KW@147..151 "move" WHITESPACE@151..152 " " PARAM_LIST@152..154 -- cgit v1.2.3