aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/test_data/parser/inline/ok/0009_loop_expr.txt
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-09-02 20:20:24 +0100
committerGitHub <[email protected]>2019-09-02 20:20:24 +0100
commit7faec1c30046769d4ae490e15cf5405bcfbdeef8 (patch)
tree6d268b721027a5350928a6c5a0ec227b5fde8ebc /crates/ra_syntax/test_data/parser/inline/ok/0009_loop_expr.txt
parenta8397deab914240aca8f015fb3736689919c0a5b (diff)
parente94587e3153b52684fd3f6b82c8e7efc09ff5c8d (diff)
Merge #1752
1752: Always wrap blocks into block expressions r=flodiebold a=matklad This way, things like function bodies are expressions, and we don't have to single them out Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0009_loop_expr.txt')
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0009_loop_expr.txt28
1 files changed, 15 insertions, 13 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0009_loop_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0009_loop_expr.txt
index 8240aba15..2d8872022 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0009_loop_expr.txt
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0009_loop_expr.txt
@@ -8,17 +8,19 @@ SOURCE_FILE@[0; 26)
8 L_PAREN@[6; 7) "(" 8 L_PAREN@[6; 7) "("
9 R_PAREN@[7; 8) ")" 9 R_PAREN@[7; 8) ")"
10 WHITESPACE@[8; 9) " " 10 WHITESPACE@[8; 9) " "
11 BLOCK@[9; 25) 11 BLOCK_EXPR@[9; 25)
12 L_CURLY@[9; 10) "{" 12 BLOCK@[9; 25)
13 WHITESPACE@[10; 15) "\n " 13 L_CURLY@[9; 10) "{"
14 EXPR_STMT@[15; 23) 14 WHITESPACE@[10; 15) "\n "
15 LOOP_EXPR@[15; 22) 15 EXPR_STMT@[15; 23)
16 LOOP_KW@[15; 19) "loop" 16 LOOP_EXPR@[15; 22)
17 WHITESPACE@[19; 20) " " 17 LOOP_KW@[15; 19) "loop"
18 BLOCK@[20; 22) 18 WHITESPACE@[19; 20) " "
19 L_CURLY@[20; 21) "{" 19 BLOCK_EXPR@[20; 22)
20 R_CURLY@[21; 22) "}" 20 BLOCK@[20; 22)
21 SEMI@[22; 23) ";" 21 L_CURLY@[20; 21) "{"
22 WHITESPACE@[23; 24) "\n" 22 R_CURLY@[21; 22) "}"
23 R_CURLY@[24; 25) "}" 23 SEMI@[22; 23) ";"
24 WHITESPACE@[23; 24) "\n"
25 R_CURLY@[24; 25) "}"
24 WHITESPACE@[25; 26) "\n" 26 WHITESPACE@[25; 26) "\n"