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/0118_match_guard.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/0118_match_guard.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0118_match_guard.txt | 73 |
1 files changed, 37 insertions, 36 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0118_match_guard.txt b/crates/ra_syntax/test_data/parser/inline/ok/0118_match_guard.txt index d53e10e86..852e4e489 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0118_match_guard.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0118_match_guard.txt | |||
@@ -8,40 +8,41 @@ SOURCE_FILE@[0; 58) | |||
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; 57) | 11 | BLOCK_EXPR@[9; 57) |
12 | L_CURLY@[9; 10) "{" | 12 | BLOCK@[9; 57) |
13 | WHITESPACE@[10; 15) "\n " | 13 | L_CURLY@[9; 10) "{" |
14 | MATCH_EXPR@[15; 55) | 14 | WHITESPACE@[10; 15) "\n " |
15 | MATCH_KW@[15; 20) "match" | 15 | MATCH_EXPR@[15; 55) |
16 | WHITESPACE@[20; 21) " " | 16 | MATCH_KW@[15; 20) "match" |
17 | TUPLE_EXPR@[21; 23) | 17 | WHITESPACE@[20; 21) " " |
18 | L_PAREN@[21; 22) "(" | 18 | TUPLE_EXPR@[21; 23) |
19 | R_PAREN@[22; 23) ")" | 19 | L_PAREN@[21; 22) "(" |
20 | WHITESPACE@[23; 24) " " | 20 | R_PAREN@[22; 23) ")" |
21 | MATCH_ARM_LIST@[24; 55) | 21 | WHITESPACE@[23; 24) " " |
22 | L_CURLY@[24; 25) "{" | 22 | MATCH_ARM_LIST@[24; 55) |
23 | WHITESPACE@[25; 34) "\n " | 23 | L_CURLY@[24; 25) "{" |
24 | MATCH_ARM@[34; 48) | 24 | WHITESPACE@[25; 34) "\n " |
25 | PLACEHOLDER_PAT@[34; 35) | 25 | MATCH_ARM@[34; 48) |
26 | UNDERSCORE@[34; 35) "_" | 26 | PLACEHOLDER_PAT@[34; 35) |
27 | WHITESPACE@[35; 36) " " | 27 | UNDERSCORE@[34; 35) "_" |
28 | MATCH_GUARD@[36; 42) | 28 | WHITESPACE@[35; 36) " " |
29 | IF_KW@[36; 38) "if" | 29 | MATCH_GUARD@[36; 42) |
30 | WHITESPACE@[38; 39) " " | 30 | IF_KW@[36; 38) "if" |
31 | PATH_EXPR@[39; 42) | 31 | WHITESPACE@[38; 39) " " |
32 | PATH@[39; 42) | 32 | PATH_EXPR@[39; 42) |
33 | PATH_SEGMENT@[39; 42) | 33 | PATH@[39; 42) |
34 | NAME_REF@[39; 42) | 34 | PATH_SEGMENT@[39; 42) |
35 | IDENT@[39; 42) "foo" | 35 | NAME_REF@[39; 42) |
36 | WHITESPACE@[42; 43) " " | 36 | IDENT@[39; 42) "foo" |
37 | FAT_ARROW@[43; 45) "=>" | 37 | WHITESPACE@[42; 43) " " |
38 | WHITESPACE@[45; 46) " " | 38 | FAT_ARROW@[43; 45) "=>" |
39 | TUPLE_EXPR@[46; 48) | 39 | WHITESPACE@[45; 46) " " |
40 | L_PAREN@[46; 47) "(" | 40 | TUPLE_EXPR@[46; 48) |
41 | R_PAREN@[47; 48) ")" | 41 | L_PAREN@[46; 47) "(" |
42 | COMMA@[48; 49) "," | 42 | R_PAREN@[47; 48) ")" |
43 | WHITESPACE@[49; 54) "\n " | 43 | COMMA@[48; 49) "," |
44 | R_CURLY@[54; 55) "}" | 44 | WHITESPACE@[49; 54) "\n " |
45 | WHITESPACE@[55; 56) "\n" | 45 | R_CURLY@[54; 55) "}" |
46 | R_CURLY@[56; 57) "}" | 46 | WHITESPACE@[55; 56) "\n" |
47 | R_CURLY@[56; 57) "}" | ||
47 | WHITESPACE@[57; 58) "\n" | 48 | WHITESPACE@[57; 58) "\n" |