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/ok/0008_mod_item.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/ok/0008_mod_item.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/ok/0008_mod_item.txt | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/crates/ra_syntax/test_data/parser/ok/0008_mod_item.txt b/crates/ra_syntax/test_data/parser/ok/0008_mod_item.txt index 5c16d0be6..35465632d 100644 --- a/crates/ra_syntax/test_data/parser/ok/0008_mod_item.txt +++ b/crates/ra_syntax/test_data/parser/ok/0008_mod_item.txt | |||
@@ -35,10 +35,11 @@ SOURCE_FILE@[0; 118) | |||
35 | L_PAREN@[37; 38) "(" | 35 | L_PAREN@[37; 38) "(" |
36 | R_PAREN@[38; 39) ")" | 36 | R_PAREN@[38; 39) ")" |
37 | WHITESPACE@[39; 40) " " | 37 | WHITESPACE@[39; 40) " " |
38 | BLOCK@[40; 47) | 38 | BLOCK_EXPR@[40; 47) |
39 | L_CURLY@[40; 41) "{" | 39 | BLOCK@[40; 47) |
40 | WHITESPACE@[41; 46) "\n " | 40 | L_CURLY@[40; 41) "{" |
41 | R_CURLY@[46; 47) "}" | 41 | WHITESPACE@[41; 46) "\n " |
42 | R_CURLY@[46; 47) "}" | ||
42 | WHITESPACE@[47; 52) "\n " | 43 | WHITESPACE@[47; 52) "\n " |
43 | STRUCT_DEF@[52; 63) | 44 | STRUCT_DEF@[52; 63) |
44 | STRUCT_KW@[52; 58) "struct" | 45 | STRUCT_KW@[52; 58) "struct" |