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/err/0010_bad_tuple_index_expr.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/err/0010_bad_tuple_index_expr.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/err/0010_bad_tuple_index_expr.txt | 79 |
1 files changed, 40 insertions, 39 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/err/0010_bad_tuple_index_expr.txt b/crates/ra_syntax/test_data/parser/inline/err/0010_bad_tuple_index_expr.txt index 465e79e7b..8ad2a588f 100644 --- a/crates/ra_syntax/test_data/parser/inline/err/0010_bad_tuple_index_expr.txt +++ b/crates/ra_syntax/test_data/parser/inline/err/0010_bad_tuple_index_expr.txt | |||
@@ -8,45 +8,46 @@ SOURCE_FILE@[0; 47) | |||
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; 46) | 11 | BLOCK_EXPR@[9; 46) |
12 | L_CURLY@[9; 10) "{" | 12 | BLOCK@[9; 46) |
13 | WHITESPACE@[10; 15) "\n " | 13 | L_CURLY@[9; 10) "{" |
14 | EXPR_STMT@[15; 20) | 14 | WHITESPACE@[10; 15) "\n " |
15 | FIELD_EXPR@[15; 19) | 15 | EXPR_STMT@[15; 20) |
16 | PATH_EXPR@[15; 16) | 16 | FIELD_EXPR@[15; 19) |
17 | PATH@[15; 16) | 17 | PATH_EXPR@[15; 16) |
18 | PATH_SEGMENT@[15; 16) | 18 | PATH@[15; 16) |
19 | NAME_REF@[15; 16) | 19 | PATH_SEGMENT@[15; 16) |
20 | IDENT@[15; 16) "x" | 20 | NAME_REF@[15; 16) |
21 | DOT@[16; 17) "." | 21 | IDENT@[15; 16) "x" |
22 | FLOAT_NUMBER@[17; 19) "0." | 22 | DOT@[16; 17) "." |
23 | SEMI@[19; 20) ";" | 23 | FLOAT_NUMBER@[17; 19) "0." |
24 | WHITESPACE@[20; 25) "\n " | 24 | SEMI@[19; 20) ";" |
25 | EXPR_STMT@[25; 32) | 25 | WHITESPACE@[20; 25) "\n " |
26 | FIELD_EXPR@[25; 31) | 26 | EXPR_STMT@[25; 32) |
27 | PATH_EXPR@[25; 26) | 27 | FIELD_EXPR@[25; 31) |
28 | PATH@[25; 26) | 28 | PATH_EXPR@[25; 26) |
29 | PATH_SEGMENT@[25; 26) | 29 | PATH@[25; 26) |
30 | NAME_REF@[25; 26) | 30 | PATH_SEGMENT@[25; 26) |
31 | IDENT@[25; 26) "x" | 31 | NAME_REF@[25; 26) |
32 | DOT@[26; 27) "." | 32 | IDENT@[25; 26) "x" |
33 | NAME_REF@[27; 31) | 33 | DOT@[26; 27) "." |
34 | INT_NUMBER@[27; 31) "1i32" | 34 | NAME_REF@[27; 31) |
35 | SEMI@[31; 32) ";" | 35 | INT_NUMBER@[27; 31) "1i32" |
36 | WHITESPACE@[32; 37) "\n " | 36 | SEMI@[31; 32) ";" |
37 | EXPR_STMT@[37; 44) | 37 | WHITESPACE@[32; 37) "\n " |
38 | FIELD_EXPR@[37; 43) | 38 | EXPR_STMT@[37; 44) |
39 | PATH_EXPR@[37; 38) | 39 | FIELD_EXPR@[37; 43) |
40 | PATH@[37; 38) | 40 | PATH_EXPR@[37; 38) |
41 | PATH_SEGMENT@[37; 38) | 41 | PATH@[37; 38) |
42 | NAME_REF@[37; 38) | 42 | PATH_SEGMENT@[37; 38) |
43 | IDENT@[37; 38) "x" | 43 | NAME_REF@[37; 38) |
44 | DOT@[38; 39) "." | 44 | IDENT@[37; 38) "x" |
45 | NAME_REF@[39; 43) | 45 | DOT@[38; 39) "." |
46 | INT_NUMBER@[39; 43) "0x01" | 46 | NAME_REF@[39; 43) |
47 | SEMI@[43; 44) ";" | 47 | INT_NUMBER@[39; 43) "0x01" |
48 | WHITESPACE@[44; 45) "\n" | 48 | SEMI@[43; 44) ";" |
49 | R_CURLY@[45; 46) "}" | 49 | WHITESPACE@[44; 45) "\n" |
50 | R_CURLY@[45; 46) "}" | ||
50 | WHITESPACE@[46; 47) "\n" | 51 | WHITESPACE@[46; 47) "\n" |
51 | error [27; 31): Tuple (struct) field access is only allowed through decimal integers with no underscores or suffix | 52 | error [27; 31): Tuple (struct) field access is only allowed through decimal integers with no underscores or suffix |
52 | error [39; 43): Tuple (struct) field access is only allowed through decimal integers with no underscores or suffix | 53 | error [39; 43): Tuple (struct) field access is only allowed through decimal integers with no underscores or suffix |