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/0012_visibility.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/0012_visibility.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/ok/0012_visibility.txt | 35 |
1 files changed, 20 insertions, 15 deletions
diff --git a/crates/ra_syntax/test_data/parser/ok/0012_visibility.txt b/crates/ra_syntax/test_data/parser/ok/0012_visibility.txt index c9d038c19..68e692fd0 100644 --- a/crates/ra_syntax/test_data/parser/ok/0012_visibility.txt +++ b/crates/ra_syntax/test_data/parser/ok/0012_visibility.txt | |||
@@ -8,9 +8,10 @@ SOURCE_FILE@[0; 98) | |||
8 | L_PAREN@[4; 5) "(" | 8 | L_PAREN@[4; 5) "(" |
9 | R_PAREN@[5; 6) ")" | 9 | R_PAREN@[5; 6) ")" |
10 | WHITESPACE@[6; 7) " " | 10 | WHITESPACE@[6; 7) " " |
11 | BLOCK@[7; 9) | 11 | BLOCK_EXPR@[7; 9) |
12 | L_CURLY@[7; 8) "{" | 12 | BLOCK@[7; 9) |
13 | R_CURLY@[8; 9) "}" | 13 | L_CURLY@[7; 8) "{" |
14 | R_CURLY@[8; 9) "}" | ||
14 | WHITESPACE@[9; 10) "\n" | 15 | WHITESPACE@[9; 10) "\n" |
15 | FN_DEF@[10; 23) | 16 | FN_DEF@[10; 23) |
16 | VISIBILITY@[10; 13) | 17 | VISIBILITY@[10; 13) |
@@ -24,9 +25,10 @@ SOURCE_FILE@[0; 98) | |||
24 | L_PAREN@[18; 19) "(" | 25 | L_PAREN@[18; 19) "(" |
25 | R_PAREN@[19; 20) ")" | 26 | R_PAREN@[19; 20) ")" |
26 | WHITESPACE@[20; 21) " " | 27 | WHITESPACE@[20; 21) " " |
27 | BLOCK@[21; 23) | 28 | BLOCK_EXPR@[21; 23) |
28 | L_CURLY@[21; 22) "{" | 29 | BLOCK@[21; 23) |
29 | R_CURLY@[22; 23) "}" | 30 | L_CURLY@[21; 22) "{" |
31 | R_CURLY@[22; 23) "}" | ||
30 | WHITESPACE@[23; 24) "\n" | 32 | WHITESPACE@[23; 24) "\n" |
31 | FN_DEF@[24; 44) | 33 | FN_DEF@[24; 44) |
32 | VISIBILITY@[24; 34) | 34 | VISIBILITY@[24; 34) |
@@ -43,9 +45,10 @@ SOURCE_FILE@[0; 98) | |||
43 | L_PAREN@[39; 40) "(" | 45 | L_PAREN@[39; 40) "(" |
44 | R_PAREN@[40; 41) ")" | 46 | R_PAREN@[40; 41) ")" |
45 | WHITESPACE@[41; 42) " " | 47 | WHITESPACE@[41; 42) " " |
46 | BLOCK@[42; 44) | 48 | BLOCK_EXPR@[42; 44) |
47 | L_CURLY@[42; 43) "{" | 49 | BLOCK@[42; 44) |
48 | R_CURLY@[43; 44) "}" | 50 | L_CURLY@[42; 43) "{" |
51 | R_CURLY@[43; 44) "}" | ||
49 | WHITESPACE@[44; 45) "\n" | 52 | WHITESPACE@[44; 45) "\n" |
50 | FN_DEF@[45; 65) | 53 | FN_DEF@[45; 65) |
51 | VISIBILITY@[45; 55) | 54 | VISIBILITY@[45; 55) |
@@ -62,9 +65,10 @@ SOURCE_FILE@[0; 98) | |||
62 | L_PAREN@[60; 61) "(" | 65 | L_PAREN@[60; 61) "(" |
63 | R_PAREN@[61; 62) ")" | 66 | R_PAREN@[61; 62) ")" |
64 | WHITESPACE@[62; 63) " " | 67 | WHITESPACE@[62; 63) " " |
65 | BLOCK@[63; 65) | 68 | BLOCK_EXPR@[63; 65) |
66 | L_CURLY@[63; 64) "{" | 69 | BLOCK@[63; 65) |
67 | R_CURLY@[64; 65) "}" | 70 | L_CURLY@[63; 64) "{" |
71 | R_CURLY@[64; 65) "}" | ||
68 | WHITESPACE@[65; 66) "\n" | 72 | WHITESPACE@[65; 66) "\n" |
69 | FN_DEF@[66; 97) | 73 | FN_DEF@[66; 97) |
70 | VISIBILITY@[66; 87) | 74 | VISIBILITY@[66; 87) |
@@ -96,7 +100,8 @@ SOURCE_FILE@[0; 98) | |||
96 | L_PAREN@[92; 93) "(" | 100 | L_PAREN@[92; 93) "(" |
97 | R_PAREN@[93; 94) ")" | 101 | R_PAREN@[93; 94) ")" |
98 | WHITESPACE@[94; 95) " " | 102 | WHITESPACE@[94; 95) " " |
99 | BLOCK@[95; 97) | 103 | BLOCK_EXPR@[95; 97) |
100 | L_CURLY@[95; 96) "{" | 104 | BLOCK@[95; 97) |
101 | R_CURLY@[96; 97) "}" | 105 | L_CURLY@[95; 96) "{" |
106 | R_CURLY@[96; 97) "}" | ||
102 | WHITESPACE@[97; 98) "\n" | 107 | WHITESPACE@[97; 98) "\n" |