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/0081_for_type.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/0081_for_type.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0081_for_type.txt | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0081_for_type.txt b/crates/ra_syntax/test_data/parser/inline/ok/0081_for_type.txt index c12ce4ddb..b1353c2c6 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0081_for_type.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0081_for_type.txt | |||
@@ -88,9 +88,10 @@ SOURCE_FILE@[0; 200) | |||
88 | NAME_REF@[68; 76) | 88 | NAME_REF@[68; 76) |
89 | IDENT@[68; 76) "Iterator" | 89 | IDENT@[68; 76) "Iterator" |
90 | WHITESPACE@[76; 77) " " | 90 | WHITESPACE@[76; 77) " " |
91 | BLOCK@[77; 79) | 91 | BLOCK_EXPR@[77; 79) |
92 | L_CURLY@[77; 78) "{" | 92 | BLOCK@[77; 79) |
93 | R_CURLY@[78; 79) "}" | 93 | L_CURLY@[77; 78) "{" |
94 | R_CURLY@[78; 79) "}" | ||
94 | WHITESPACE@[79; 80) "\n" | 95 | WHITESPACE@[79; 80) "\n" |
95 | FN_DEF@[80; 134) | 96 | FN_DEF@[80; 134) |
96 | FN_KW@[80; 82) "fn" | 97 | FN_KW@[80; 82) "fn" |
@@ -153,9 +154,10 @@ SOURCE_FILE@[0; 200) | |||
153 | NAME_REF@[123; 131) | 154 | NAME_REF@[123; 131) |
154 | IDENT@[123; 131) "Iterator" | 155 | IDENT@[123; 131) "Iterator" |
155 | WHITESPACE@[131; 132) " " | 156 | WHITESPACE@[131; 132) " " |
156 | BLOCK@[132; 134) | 157 | BLOCK_EXPR@[132; 134) |
157 | L_CURLY@[132; 133) "{" | 158 | BLOCK@[132; 134) |
158 | R_CURLY@[133; 134) "}" | 159 | L_CURLY@[132; 133) "{" |
160 | R_CURLY@[133; 134) "}" | ||
159 | WHITESPACE@[134; 135) "\n" | 161 | WHITESPACE@[134; 135) "\n" |
160 | FN_DEF@[135; 199) | 162 | FN_DEF@[135; 199) |
161 | FN_KW@[135; 137) "fn" | 163 | FN_KW@[135; 137) "fn" |
@@ -234,7 +236,8 @@ SOURCE_FILE@[0; 200) | |||
234 | NAME_REF@[188; 196) | 236 | NAME_REF@[188; 196) |
235 | IDENT@[188; 196) "Iterator" | 237 | IDENT@[188; 196) "Iterator" |
236 | WHITESPACE@[196; 197) " " | 238 | WHITESPACE@[196; 197) " " |
237 | BLOCK@[197; 199) | 239 | BLOCK_EXPR@[197; 199) |
238 | L_CURLY@[197; 198) "{" | 240 | BLOCK@[197; 199) |
239 | R_CURLY@[198; 199) "}" | 241 | L_CURLY@[197; 198) "{" |
242 | R_CURLY@[198; 199) "}" | ||
240 | WHITESPACE@[199; 200) "\n" | 243 | WHITESPACE@[199; 200) "\n" |