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/0011_field_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/ok/0011_field_expr.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0011_field_expr.txt | 97 |
1 files changed, 49 insertions, 48 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0011_field_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0011_field_expr.txt index 1d2cf2761..29b268b55 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0011_field_expr.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0011_field_expr.txt | |||
@@ -8,52 +8,53 @@ SOURCE_FILE@[0; 48) | |||
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; 47) | 11 | BLOCK_EXPR@[9; 47) |
12 | L_CURLY@[9; 10) "{" | 12 | BLOCK@[9; 47) |
13 | WHITESPACE@[10; 15) "\n " | 13 | L_CURLY@[9; 10) "{" |
14 | EXPR_STMT@[15; 21) | 14 | WHITESPACE@[10; 15) "\n " |
15 | FIELD_EXPR@[15; 20) | 15 | EXPR_STMT@[15; 21) |
16 | PATH_EXPR@[15; 16) | 16 | FIELD_EXPR@[15; 20) |
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 | NAME_REF@[17; 20) | 22 | DOT@[16; 17) "." |
23 | IDENT@[17; 20) "foo" | 23 | NAME_REF@[17; 20) |
24 | SEMI@[20; 21) ";" | 24 | IDENT@[17; 20) "foo" |
25 | WHITESPACE@[21; 26) "\n " | 25 | SEMI@[20; 21) ";" |
26 | EXPR_STMT@[26; 34) | 26 | WHITESPACE@[21; 26) "\n " |
27 | FIELD_EXPR@[26; 33) | 27 | EXPR_STMT@[26; 34) |
28 | FIELD_EXPR@[26; 29) | 28 | FIELD_EXPR@[26; 33) |
29 | PATH_EXPR@[26; 27) | 29 | FIELD_EXPR@[26; 29) |
30 | PATH@[26; 27) | 30 | PATH_EXPR@[26; 27) |
31 | PATH_SEGMENT@[26; 27) | 31 | PATH@[26; 27) |
32 | NAME_REF@[26; 27) | 32 | PATH_SEGMENT@[26; 27) |
33 | IDENT@[26; 27) "x" | 33 | NAME_REF@[26; 27) |
34 | DOT@[27; 28) "." | 34 | IDENT@[26; 27) "x" |
35 | NAME_REF@[28; 29) | 35 | DOT@[27; 28) "." |
36 | INT_NUMBER@[28; 29) "0" | 36 | NAME_REF@[28; 29) |
37 | DOT@[29; 30) "." | 37 | INT_NUMBER@[28; 29) "0" |
38 | NAME_REF@[30; 33) | 38 | DOT@[29; 30) "." |
39 | IDENT@[30; 33) "bar" | 39 | NAME_REF@[30; 33) |
40 | SEMI@[33; 34) ";" | 40 | IDENT@[30; 33) "bar" |
41 | WHITESPACE@[34; 39) "\n " | 41 | SEMI@[33; 34) ";" |
42 | EXPR_STMT@[39; 45) | 42 | WHITESPACE@[34; 39) "\n " |
43 | CALL_EXPR@[39; 44) | 43 | EXPR_STMT@[39; 45) |
44 | FIELD_EXPR@[39; 42) | 44 | CALL_EXPR@[39; 44) |
45 | PATH_EXPR@[39; 40) | 45 | FIELD_EXPR@[39; 42) |
46 | PATH@[39; 40) | 46 | PATH_EXPR@[39; 40) |
47 | PATH_SEGMENT@[39; 40) | 47 | PATH@[39; 40) |
48 | NAME_REF@[39; 40) | 48 | PATH_SEGMENT@[39; 40) |
49 | IDENT@[39; 40) "x" | 49 | NAME_REF@[39; 40) |
50 | DOT@[40; 41) "." | 50 | IDENT@[39; 40) "x" |
51 | NAME_REF@[41; 42) | 51 | DOT@[40; 41) "." |
52 | INT_NUMBER@[41; 42) "0" | 52 | NAME_REF@[41; 42) |
53 | ARG_LIST@[42; 44) | 53 | INT_NUMBER@[41; 42) "0" |
54 | L_PAREN@[42; 43) "(" | 54 | ARG_LIST@[42; 44) |
55 | R_PAREN@[43; 44) ")" | 55 | L_PAREN@[42; 43) "(" |
56 | SEMI@[44; 45) ";" | 56 | R_PAREN@[43; 44) ")" |
57 | WHITESPACE@[45; 46) "\n" | 57 | SEMI@[44; 45) ";" |
58 | R_CURLY@[46; 47) "}" | 58 | WHITESPACE@[45; 46) "\n" |
59 | R_CURLY@[46; 47) "}" | ||
59 | WHITESPACE@[47; 48) "\n" | 60 | WHITESPACE@[47; 48) "\n" |