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/0061_record_lit.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/0061_record_lit.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0061_record_lit.txt | 215 |
1 files changed, 108 insertions, 107 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0061_record_lit.txt b/crates/ra_syntax/test_data/parser/inline/ok/0061_record_lit.txt index 1c915ea0c..dcf527639 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0061_record_lit.txt +++ b/crates/ra_syntax/test_data/parser/inline/ok/0061_record_lit.txt | |||
@@ -8,111 +8,112 @@ SOURCE_FILE@[0; 112) | |||
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; 111) | 11 | BLOCK_EXPR@[9; 111) |
12 | L_CURLY@[9; 10) "{" | 12 | BLOCK@[9; 111) |
13 | WHITESPACE@[10; 15) "\n " | 13 | L_CURLY@[9; 10) "{" |
14 | EXPR_STMT@[15; 20) | 14 | WHITESPACE@[10; 15) "\n " |
15 | RECORD_LIT@[15; 19) | 15 | EXPR_STMT@[15; 20) |
16 | PATH@[15; 16) | 16 | RECORD_LIT@[15; 19) |
17 | PATH_SEGMENT@[15; 16) | 17 | PATH@[15; 16) |
18 | NAME_REF@[15; 16) | 18 | PATH_SEGMENT@[15; 16) |
19 | IDENT@[15; 16) "S" | 19 | NAME_REF@[15; 16) |
20 | WHITESPACE@[16; 17) " " | 20 | IDENT@[15; 16) "S" |
21 | RECORD_FIELD_LIST@[17; 19) | 21 | WHITESPACE@[16; 17) " " |
22 | L_CURLY@[17; 18) "{" | 22 | RECORD_FIELD_LIST@[17; 19) |
23 | R_CURLY@[18; 19) "}" | 23 | L_CURLY@[17; 18) "{" |
24 | SEMI@[19; 20) ";" | 24 | R_CURLY@[18; 19) "}" |
25 | WHITESPACE@[20; 25) "\n " | 25 | SEMI@[19; 20) ";" |
26 | EXPR_STMT@[25; 41) | 26 | WHITESPACE@[20; 25) "\n " |
27 | RECORD_LIT@[25; 40) | 27 | EXPR_STMT@[25; 41) |
28 | PATH@[25; 26) | 28 | RECORD_LIT@[25; 40) |
29 | PATH_SEGMENT@[25; 26) | 29 | PATH@[25; 26) |
30 | NAME_REF@[25; 26) | 30 | PATH_SEGMENT@[25; 26) |
31 | IDENT@[25; 26) "S" | 31 | NAME_REF@[25; 26) |
32 | WHITESPACE@[26; 27) " " | 32 | IDENT@[25; 26) "S" |
33 | RECORD_FIELD_LIST@[27; 40) | 33 | WHITESPACE@[26; 27) " " |
34 | L_CURLY@[27; 28) "{" | 34 | RECORD_FIELD_LIST@[27; 40) |
35 | WHITESPACE@[28; 29) " " | 35 | L_CURLY@[27; 28) "{" |
36 | RECORD_FIELD@[29; 30) | 36 | WHITESPACE@[28; 29) " " |
37 | NAME_REF@[29; 30) | 37 | RECORD_FIELD@[29; 30) |
38 | IDENT@[29; 30) "x" | 38 | NAME_REF@[29; 30) |
39 | COMMA@[30; 31) "," | 39 | IDENT@[29; 30) "x" |
40 | WHITESPACE@[31; 32) " " | 40 | COMMA@[30; 31) "," |
41 | RECORD_FIELD@[32; 37) | 41 | WHITESPACE@[31; 32) " " |
42 | NAME_REF@[32; 33) | 42 | RECORD_FIELD@[32; 37) |
43 | IDENT@[32; 33) "y" | 43 | NAME_REF@[32; 33) |
44 | COLON@[33; 34) ":" | 44 | IDENT@[32; 33) "y" |
45 | WHITESPACE@[34; 35) " " | 45 | COLON@[33; 34) ":" |
46 | LITERAL@[35; 37) | 46 | WHITESPACE@[34; 35) " " |
47 | INT_NUMBER@[35; 37) "32" | 47 | LITERAL@[35; 37) |
48 | COMMA@[37; 38) "," | 48 | INT_NUMBER@[35; 37) "32" |
49 | WHITESPACE@[38; 39) " " | 49 | COMMA@[37; 38) "," |
50 | R_CURLY@[39; 40) "}" | 50 | WHITESPACE@[38; 39) " " |
51 | SEMI@[40; 41) ";" | 51 | R_CURLY@[39; 40) "}" |
52 | WHITESPACE@[41; 46) "\n " | 52 | SEMI@[40; 41) ";" |
53 | EXPR_STMT@[46; 83) | 53 | WHITESPACE@[41; 46) "\n " |
54 | RECORD_LIT@[46; 82) | 54 | EXPR_STMT@[46; 83) |
55 | PATH@[46; 47) | 55 | RECORD_LIT@[46; 82) |
56 | PATH_SEGMENT@[46; 47) | 56 | PATH@[46; 47) |
57 | NAME_REF@[46; 47) | 57 | PATH_SEGMENT@[46; 47) |
58 | IDENT@[46; 47) "S" | 58 | NAME_REF@[46; 47) |
59 | WHITESPACE@[47; 48) " " | 59 | IDENT@[46; 47) "S" |
60 | RECORD_FIELD_LIST@[48; 82) | 60 | WHITESPACE@[47; 48) " " |
61 | L_CURLY@[48; 49) "{" | 61 | RECORD_FIELD_LIST@[48; 82) |
62 | WHITESPACE@[49; 50) " " | 62 | L_CURLY@[48; 49) "{" |
63 | RECORD_FIELD@[50; 51) | 63 | WHITESPACE@[49; 50) " " |
64 | NAME_REF@[50; 51) | 64 | RECORD_FIELD@[50; 51) |
65 | IDENT@[50; 51) "x" | 65 | NAME_REF@[50; 51) |
66 | COMMA@[51; 52) "," | 66 | IDENT@[50; 51) "x" |
67 | WHITESPACE@[52; 53) " " | 67 | COMMA@[51; 52) "," |
68 | RECORD_FIELD@[53; 58) | 68 | WHITESPACE@[52; 53) " " |
69 | NAME_REF@[53; 54) | 69 | RECORD_FIELD@[53; 58) |
70 | IDENT@[53; 54) "y" | 70 | NAME_REF@[53; 54) |
71 | COLON@[54; 55) ":" | 71 | IDENT@[53; 54) "y" |
72 | WHITESPACE@[55; 56) " " | 72 | COLON@[54; 55) ":" |
73 | LITERAL@[56; 58) | 73 | WHITESPACE@[55; 56) " " |
74 | INT_NUMBER@[56; 58) "32" | 74 | LITERAL@[56; 58) |
75 | COMMA@[58; 59) "," | 75 | INT_NUMBER@[56; 58) "32" |
76 | WHITESPACE@[59; 60) " " | 76 | COMMA@[58; 59) "," |
77 | DOTDOT@[60; 62) ".." | 77 | WHITESPACE@[59; 60) " " |
78 | CALL_EXPR@[62; 80) | 78 | DOTDOT@[60; 62) ".." |
79 | PATH_EXPR@[62; 78) | 79 | CALL_EXPR@[62; 80) |
80 | PATH@[62; 78) | 80 | PATH_EXPR@[62; 78) |
81 | PATH@[62; 69) | 81 | PATH@[62; 78) |
82 | PATH_SEGMENT@[62; 69) | 82 | PATH@[62; 69) |
83 | NAME_REF@[62; 69) | 83 | PATH_SEGMENT@[62; 69) |
84 | IDENT@[62; 69) "Default" | 84 | NAME_REF@[62; 69) |
85 | COLONCOLON@[69; 71) "::" | 85 | IDENT@[62; 69) "Default" |
86 | PATH_SEGMENT@[71; 78) | 86 | COLONCOLON@[69; 71) "::" |
87 | NAME_REF@[71; 78) | 87 | PATH_SEGMENT@[71; 78) |
88 | IDENT@[71; 78) "default" | 88 | NAME_REF@[71; 78) |
89 | ARG_LIST@[78; 80) | 89 | IDENT@[71; 78) "default" |
90 | L_PAREN@[78; 79) "(" | 90 | ARG_LIST@[78; 80) |
91 | R_PAREN@[79; 80) ")" | 91 | L_PAREN@[78; 79) "(" |
92 | WHITESPACE@[80; 81) " " | 92 | R_PAREN@[79; 80) ")" |
93 | R_CURLY@[81; 82) "}" | 93 | WHITESPACE@[80; 81) " " |
94 | SEMI@[82; 83) ";" | 94 | R_CURLY@[81; 82) "}" |
95 | WHITESPACE@[83; 88) "\n " | 95 | SEMI@[82; 83) ";" |
96 | EXPR_STMT@[88; 109) | 96 | WHITESPACE@[83; 88) "\n " |
97 | RECORD_LIT@[88; 108) | 97 | EXPR_STMT@[88; 109) |
98 | PATH@[88; 99) | 98 | RECORD_LIT@[88; 108) |
99 | PATH_SEGMENT@[88; 99) | 99 | PATH@[88; 99) |
100 | NAME_REF@[88; 99) | 100 | PATH_SEGMENT@[88; 99) |
101 | IDENT@[88; 99) "TupleStruct" | 101 | NAME_REF@[88; 99) |
102 | WHITESPACE@[99; 100) " " | 102 | IDENT@[88; 99) "TupleStruct" |
103 | RECORD_FIELD_LIST@[100; 108) | 103 | WHITESPACE@[99; 100) " " |
104 | L_CURLY@[100; 101) "{" | 104 | RECORD_FIELD_LIST@[100; 108) |
105 | WHITESPACE@[101; 102) " " | 105 | L_CURLY@[100; 101) "{" |
106 | RECORD_FIELD@[102; 106) | 106 | WHITESPACE@[101; 102) " " |
107 | NAME_REF@[102; 103) | 107 | RECORD_FIELD@[102; 106) |
108 | INT_NUMBER@[102; 103) "0" | 108 | NAME_REF@[102; 103) |
109 | COLON@[103; 104) ":" | 109 | INT_NUMBER@[102; 103) "0" |
110 | WHITESPACE@[104; 105) " " | 110 | COLON@[103; 104) ":" |
111 | LITERAL@[105; 106) | 111 | WHITESPACE@[104; 105) " " |
112 | INT_NUMBER@[105; 106) "1" | 112 | LITERAL@[105; 106) |
113 | WHITESPACE@[106; 107) " " | 113 | INT_NUMBER@[105; 106) "1" |
114 | R_CURLY@[107; 108) "}" | 114 | WHITESPACE@[106; 107) " " |
115 | SEMI@[108; 109) ";" | 115 | R_CURLY@[107; 108) "}" |
116 | WHITESPACE@[109; 110) "\n" | 116 | SEMI@[108; 109) ";" |
117 | R_CURLY@[110; 111) "}" | 117 | WHITESPACE@[109; 110) "\n" |
118 | R_CURLY@[110; 111) "}" | ||
118 | WHITESPACE@[111; 112) "\n" | 119 | WHITESPACE@[111; 112) "\n" |