diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-09-02 20:20:24 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2019-09-02 20:20:24 +0100 |
commit | 7faec1c30046769d4ae490e15cf5405bcfbdeef8 (patch) | |
tree | 6d268b721027a5350928a6c5a0ec227b5fde8ebc /crates/ra_syntax/test_data/parser/inline/ok/0034_break_expr.txt | |
parent | a8397deab914240aca8f015fb3736689919c0a5b (diff) | |
parent | e94587e3153b52684fd3f6b82c8e7efc09ff5c8d (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/0034_break_expr.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0034_break_expr.txt | 86 |
1 files changed, 44 insertions, 42 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0034_break_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0034_break_expr.txt index 4ece7cd7e..67ffdfd67 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0034_break_expr.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0034_break_expr.txt | |||
@@ -8,46 +8,48 @@ SOURCE_FILE@[0; 102) | |||
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; 101) | 11 | BLOCK_EXPR@[9; 101) |
12 | L_CURLY@[9; 10) "{" | 12 | BLOCK@[9; 101) |
13 | WHITESPACE@[10; 15) "\n " | 13 | L_CURLY@[9; 10) "{" |
14 | LOOP_EXPR@[15; 99) | 14 | WHITESPACE@[10; 15) "\n " |
15 | LOOP_KW@[15; 19) "loop" | 15 | LOOP_EXPR@[15; 99) |
16 | WHITESPACE@[19; 20) " " | 16 | LOOP_KW@[15; 19) "loop" |
17 | BLOCK@[20; 99) | 17 | WHITESPACE@[19; 20) " " |
18 | L_CURLY@[20; 21) "{" | 18 | BLOCK_EXPR@[20; 99) |
19 | WHITESPACE@[21; 30) "\n " | 19 | BLOCK@[20; 99) |
20 | EXPR_STMT@[30; 36) | 20 | L_CURLY@[20; 21) "{" |
21 | BREAK_EXPR@[30; 35) | 21 | WHITESPACE@[21; 30) "\n " |
22 | BREAK_KW@[30; 35) "break" | 22 | EXPR_STMT@[30; 36) |
23 | SEMI@[35; 36) ";" | 23 | BREAK_EXPR@[30; 35) |
24 | WHITESPACE@[36; 45) "\n " | 24 | BREAK_KW@[30; 35) "break" |
25 | EXPR_STMT@[45; 54) | 25 | SEMI@[35; 36) ";" |
26 | BREAK_EXPR@[45; 53) | 26 | WHITESPACE@[36; 45) "\n " |
27 | BREAK_KW@[45; 50) "break" | 27 | EXPR_STMT@[45; 54) |
28 | WHITESPACE@[50; 51) " " | 28 | BREAK_EXPR@[45; 53) |
29 | LIFETIME@[51; 53) "\'l" | 29 | BREAK_KW@[45; 50) "break" |
30 | SEMI@[53; 54) ";" | 30 | WHITESPACE@[50; 51) " " |
31 | WHITESPACE@[54; 63) "\n " | 31 | LIFETIME@[51; 53) "\'l" |
32 | EXPR_STMT@[63; 72) | 32 | SEMI@[53; 54) ";" |
33 | BREAK_EXPR@[63; 71) | 33 | WHITESPACE@[54; 63) "\n " |
34 | BREAK_KW@[63; 68) "break" | 34 | EXPR_STMT@[63; 72) |
35 | WHITESPACE@[68; 69) " " | 35 | BREAK_EXPR@[63; 71) |
36 | LITERAL@[69; 71) | 36 | BREAK_KW@[63; 68) "break" |
37 | INT_NUMBER@[69; 71) "92" | 37 | WHITESPACE@[68; 69) " " |
38 | SEMI@[71; 72) ";" | 38 | LITERAL@[69; 71) |
39 | WHITESPACE@[72; 81) "\n " | 39 | INT_NUMBER@[69; 71) "92" |
40 | EXPR_STMT@[81; 93) | 40 | SEMI@[71; 72) ";" |
41 | BREAK_EXPR@[81; 92) | 41 | WHITESPACE@[72; 81) "\n " |
42 | BREAK_KW@[81; 86) "break" | 42 | EXPR_STMT@[81; 93) |
43 | WHITESPACE@[86; 87) " " | 43 | BREAK_EXPR@[81; 92) |
44 | LIFETIME@[87; 89) "\'l" | 44 | BREAK_KW@[81; 86) "break" |
45 | WHITESPACE@[89; 90) " " | 45 | WHITESPACE@[86; 87) " " |
46 | LITERAL@[90; 92) | 46 | LIFETIME@[87; 89) "\'l" |
47 | INT_NUMBER@[90; 92) "92" | 47 | WHITESPACE@[89; 90) " " |
48 | SEMI@[92; 93) ";" | 48 | LITERAL@[90; 92) |
49 | WHITESPACE@[93; 98) "\n " | 49 | INT_NUMBER@[90; 92) "92" |
50 | R_CURLY@[98; 99) "}" | 50 | SEMI@[92; 93) ";" |
51 | WHITESPACE@[99; 100) "\n" | 51 | WHITESPACE@[93; 98) "\n " |
52 | R_CURLY@[100; 101) "}" | 52 | R_CURLY@[98; 99) "}" |
53 | WHITESPACE@[99; 100) "\n" | ||
54 | R_CURLY@[100; 101) "}" | ||
53 | WHITESPACE@[101; 102) "\n" | 55 | WHITESPACE@[101; 102) "\n" |