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/0138_expression_after_block.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/0138_expression_after_block.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0138_expression_after_block.txt | 109 |
1 files changed, 55 insertions, 54 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0138_expression_after_block.txt b/crates/ra_syntax/test_data/parser/inline/ok/0138_expression_after_block.txt index c4db9da40..df4c04149 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0138_expression_after_block.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0138_expression_after_block.txt | |||
@@ -8,58 +8,59 @@ SOURCE_FILE@[0; 52) | |||
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; 51) | 11 | BLOCK_EXPR@[9; 51) |
12 | L_CURLY@[9; 10) "{" | 12 | BLOCK@[9; 51) |
13 | WHITESPACE@[10; 14) "\n " | 13 | L_CURLY@[9; 10) "{" |
14 | LET_STMT@[14; 34) | 14 | WHITESPACE@[10; 14) "\n " |
15 | LET_KW@[14; 17) "let" | 15 | LET_STMT@[14; 34) |
16 | WHITESPACE@[17; 18) " " | 16 | LET_KW@[14; 17) "let" |
17 | BIND_PAT@[18; 23) | 17 | WHITESPACE@[17; 18) " " |
18 | MUT_KW@[18; 21) "mut" | 18 | BIND_PAT@[18; 23) |
19 | WHITESPACE@[21; 22) " " | 19 | MUT_KW@[18; 21) "mut" |
20 | NAME@[22; 23) | 20 | WHITESPACE@[21; 22) " " |
21 | IDENT@[22; 23) "p" | 21 | NAME@[22; 23) |
22 | WHITESPACE@[23; 24) " " | 22 | IDENT@[22; 23) "p" |
23 | EQ@[24; 25) "=" | 23 | WHITESPACE@[23; 24) " " |
24 | WHITESPACE@[25; 26) " " | 24 | EQ@[24; 25) "=" |
25 | RECORD_LIT@[26; 33) | 25 | WHITESPACE@[25; 26) " " |
26 | PATH@[26; 27) | 26 | RECORD_LIT@[26; 33) |
27 | PATH_SEGMENT@[26; 27) | 27 | PATH@[26; 27) |
28 | NAME_REF@[26; 27) | 28 | PATH_SEGMENT@[26; 27) |
29 | IDENT@[26; 27) "F" | 29 | NAME_REF@[26; 27) |
30 | RECORD_FIELD_LIST@[27; 33) | 30 | IDENT@[26; 27) "F" |
31 | L_CURLY@[27; 28) "{" | 31 | RECORD_FIELD_LIST@[27; 33) |
32 | RECORD_FIELD@[28; 32) | 32 | L_CURLY@[27; 28) "{" |
33 | NAME_REF@[28; 29) | 33 | RECORD_FIELD@[28; 32) |
34 | IDENT@[28; 29) "x" | 34 | NAME_REF@[28; 29) |
35 | COLON@[29; 30) ":" | 35 | IDENT@[28; 29) "x" |
36 | WHITESPACE@[30; 31) " " | 36 | COLON@[29; 30) ":" |
37 | LITERAL@[31; 32) | 37 | WHITESPACE@[30; 31) " " |
38 | INT_NUMBER@[31; 32) "5" | 38 | LITERAL@[31; 32) |
39 | R_CURLY@[32; 33) "}" | 39 | INT_NUMBER@[31; 32) "5" |
40 | SEMI@[33; 34) ";" | 40 | R_CURLY@[32; 33) "}" |
41 | WHITESPACE@[34; 38) "\n " | 41 | SEMI@[33; 34) ";" |
42 | EXPR_STMT@[38; 49) | 42 | WHITESPACE@[34; 38) "\n " |
43 | BIN_EXPR@[38; 48) | 43 | EXPR_STMT@[38; 49) |
44 | FIELD_EXPR@[38; 43) | 44 | BIN_EXPR@[38; 48) |
45 | BLOCK_EXPR@[38; 41) | 45 | FIELD_EXPR@[38; 43) |
46 | BLOCK@[38; 41) | 46 | BLOCK_EXPR@[38; 41) |
47 | L_CURLY@[38; 39) "{" | 47 | BLOCK@[38; 41) |
48 | PATH_EXPR@[39; 40) | 48 | L_CURLY@[38; 39) "{" |
49 | PATH@[39; 40) | 49 | PATH_EXPR@[39; 40) |
50 | PATH_SEGMENT@[39; 40) | 50 | PATH@[39; 40) |
51 | NAME_REF@[39; 40) | 51 | PATH_SEGMENT@[39; 40) |
52 | IDENT@[39; 40) "p" | 52 | NAME_REF@[39; 40) |
53 | R_CURLY@[40; 41) "}" | 53 | IDENT@[39; 40) "p" |
54 | DOT@[41; 42) "." | 54 | R_CURLY@[40; 41) "}" |
55 | NAME_REF@[42; 43) | 55 | DOT@[41; 42) "." |
56 | IDENT@[42; 43) "x" | 56 | NAME_REF@[42; 43) |
57 | WHITESPACE@[43; 44) " " | 57 | IDENT@[42; 43) "x" |
58 | EQ@[44; 45) "=" | 58 | WHITESPACE@[43; 44) " " |
59 | WHITESPACE@[45; 46) " " | 59 | EQ@[44; 45) "=" |
60 | LITERAL@[46; 48) | 60 | WHITESPACE@[45; 46) " " |
61 | INT_NUMBER@[46; 48) "10" | 61 | LITERAL@[46; 48) |
62 | SEMI@[48; 49) ";" | 62 | INT_NUMBER@[46; 48) "10" |
63 | WHITESPACE@[49; 50) "\n" | 63 | SEMI@[48; 49) ";" |
64 | R_CURLY@[50; 51) "}" | 64 | WHITESPACE@[49; 50) "\n" |
65 | R_CURLY@[50; 51) "}" | ||
65 | WHITESPACE@[51; 52) "\n" | 66 | WHITESPACE@[51; 52) "\n" |