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/0021_impl_item_list.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/0021_impl_item_list.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0021_impl_item_list.txt | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0021_impl_item_list.txt b/crates/ra_syntax/test_data/parser/inline/ok/0021_impl_item_list.txt index a893833e1..0768f0518 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0021_impl_item_list.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0021_impl_item_list.txt | |||
@@ -54,9 +54,10 @@ SOURCE_FILE@[0; 89) | |||
54 | L_PAREN@[60; 61) "(" | 54 | L_PAREN@[60; 61) "(" |
55 | R_PAREN@[61; 62) ")" | 55 | R_PAREN@[61; 62) ")" |
56 | WHITESPACE@[62; 63) " " | 56 | WHITESPACE@[62; 63) " " |
57 | BLOCK@[63; 65) | 57 | BLOCK_EXPR@[63; 65) |
58 | L_CURLY@[63; 64) "{" | 58 | BLOCK@[63; 65) |
59 | R_CURLY@[64; 65) "}" | 59 | L_CURLY@[63; 64) "{" |
60 | R_CURLY@[64; 65) "}" | ||
60 | WHITESPACE@[65; 70) "\n " | 61 | WHITESPACE@[65; 70) "\n " |
61 | FN_DEF@[70; 86) | 62 | FN_DEF@[70; 86) |
62 | FN_KW@[70; 72) "fn" | 63 | FN_KW@[70; 72) "fn" |
@@ -70,9 +71,10 @@ SOURCE_FILE@[0; 89) | |||
70 | SELF_KW@[78; 82) "self" | 71 | SELF_KW@[78; 82) "self" |
71 | R_PAREN@[82; 83) ")" | 72 | R_PAREN@[82; 83) ")" |
72 | WHITESPACE@[83; 84) " " | 73 | WHITESPACE@[83; 84) " " |
73 | BLOCK@[84; 86) | 74 | BLOCK_EXPR@[84; 86) |
74 | L_CURLY@[84; 85) "{" | 75 | BLOCK@[84; 86) |
75 | R_CURLY@[85; 86) "}" | 76 | L_CURLY@[84; 85) "{" |
77 | R_CURLY@[85; 86) "}" | ||
76 | WHITESPACE@[86; 87) "\n" | 78 | WHITESPACE@[86; 87) "\n" |
77 | R_CURLY@[87; 88) "}" | 79 | R_CURLY@[87; 88) "}" |
78 | WHITESPACE@[88; 89) "\n" | 80 | WHITESPACE@[88; 89) "\n" |