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/0043_complex_assignment.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/0043_complex_assignment.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/ok/0043_complex_assignment.txt | 135 |
1 files changed, 68 insertions, 67 deletions
diff --git a/crates/ra_syntax/test_data/parser/ok/0043_complex_assignment.txt b/crates/ra_syntax/test_data/parser/ok/0043_complex_assignment.txt index 1f2456afa..c5821afd0 100644 --- a/crates/ra_syntax/test_data/parser/ok/0043_complex_assignment.txt +++ b/crates/ra_syntax/test_data/parser/ok/0043_complex_assignment.txt | |||
@@ -39,71 +39,72 @@ SOURCE_FILE@[0; 160) | |||
39 | L_PAREN@[98; 99) "(" | 39 | L_PAREN@[98; 99) "(" |
40 | R_PAREN@[99; 100) ")" | 40 | R_PAREN@[99; 100) ")" |
41 | WHITESPACE@[100; 101) " " | 41 | WHITESPACE@[100; 101) " " |
42 | BLOCK@[101; 159) | 42 | BLOCK_EXPR@[101; 159) |
43 | L_CURLY@[101; 102) "{" | 43 | BLOCK@[101; 159) |
44 | WHITESPACE@[102; 107) "\n " | 44 | L_CURLY@[101; 102) "{" |
45 | EXPR_STMT@[107; 136) | 45 | WHITESPACE@[102; 107) "\n " |
46 | BIN_EXPR@[107; 135) | 46 | EXPR_STMT@[107; 136) |
47 | INDEX_EXPR@[107; 131) | 47 | BIN_EXPR@[107; 135) |
48 | FIELD_EXPR@[107; 128) | 48 | INDEX_EXPR@[107; 131) |
49 | RECORD_LIT@[107; 124) | 49 | FIELD_EXPR@[107; 128) |
50 | PATH@[107; 111) | 50 | RECORD_LIT@[107; 124) |
51 | PATH_SEGMENT@[107; 111) | 51 | PATH@[107; 111) |
52 | NAME_REF@[107; 111) | 52 | PATH_SEGMENT@[107; 111) |
53 | IDENT@[107; 111) "Repr" | 53 | NAME_REF@[107; 111) |
54 | WHITESPACE@[111; 112) " " | 54 | IDENT@[107; 111) "Repr" |
55 | RECORD_FIELD_LIST@[112; 124) | 55 | WHITESPACE@[111; 112) " " |
56 | L_CURLY@[112; 113) "{" | 56 | RECORD_FIELD_LIST@[112; 124) |
57 | WHITESPACE@[113; 114) " " | 57 | L_CURLY@[112; 113) "{" |
58 | RECORD_FIELD@[114; 122) | 58 | WHITESPACE@[113; 114) " " |
59 | NAME_REF@[114; 117) | 59 | RECORD_FIELD@[114; 122) |
60 | IDENT@[114; 117) "raw" | 60 | NAME_REF@[114; 117) |
61 | COLON@[117; 118) ":" | 61 | IDENT@[114; 117) "raw" |
62 | WHITESPACE@[118; 119) " " | 62 | COLON@[117; 118) ":" |
63 | ARRAY_EXPR@[119; 122) | 63 | WHITESPACE@[118; 119) " " |
64 | L_BRACK@[119; 120) "[" | 64 | ARRAY_EXPR@[119; 122) |
65 | LITERAL@[120; 121) | 65 | L_BRACK@[119; 120) "[" |
66 | INT_NUMBER@[120; 121) "0" | 66 | LITERAL@[120; 121) |
67 | R_BRACK@[121; 122) "]" | 67 | INT_NUMBER@[120; 121) "0" |
68 | WHITESPACE@[122; 123) " " | 68 | R_BRACK@[121; 122) "]" |
69 | R_CURLY@[123; 124) "}" | 69 | WHITESPACE@[122; 123) " " |
70 | DOT@[124; 125) "." | 70 | R_CURLY@[123; 124) "}" |
71 | NAME_REF@[125; 128) | 71 | DOT@[124; 125) "." |
72 | IDENT@[125; 128) "raw" | 72 | NAME_REF@[125; 128) |
73 | L_BRACK@[128; 129) "[" | 73 | IDENT@[125; 128) "raw" |
74 | LITERAL@[129; 130) | 74 | L_BRACK@[128; 129) "[" |
75 | INT_NUMBER@[129; 130) "0" | 75 | LITERAL@[129; 130) |
76 | R_BRACK@[130; 131) "]" | 76 | INT_NUMBER@[129; 130) "0" |
77 | WHITESPACE@[131; 132) " " | 77 | R_BRACK@[130; 131) "]" |
78 | EQ@[132; 133) "=" | 78 | WHITESPACE@[131; 132) " " |
79 | WHITESPACE@[133; 134) " " | 79 | EQ@[132; 133) "=" |
80 | LITERAL@[134; 135) | 80 | WHITESPACE@[133; 134) " " |
81 | INT_NUMBER@[134; 135) "0" | 81 | LITERAL@[134; 135) |
82 | SEMI@[135; 136) ";" | 82 | INT_NUMBER@[134; 135) "0" |
83 | WHITESPACE@[136; 141) "\n " | 83 | SEMI@[135; 136) ";" |
84 | EXPR_STMT@[141; 157) | 84 | WHITESPACE@[136; 141) "\n " |
85 | CALL_EXPR@[141; 156) | 85 | EXPR_STMT@[141; 157) |
86 | RECORD_LIT@[141; 154) | 86 | CALL_EXPR@[141; 156) |
87 | PATH@[141; 145) | 87 | RECORD_LIT@[141; 154) |
88 | PATH_SEGMENT@[141; 145) | 88 | PATH@[141; 145) |
89 | NAME_REF@[141; 145) | 89 | PATH_SEGMENT@[141; 145) |
90 | IDENT@[141; 145) "Repr" | 90 | NAME_REF@[141; 145) |
91 | RECORD_FIELD_LIST@[145; 154) | 91 | IDENT@[141; 145) "Repr" |
92 | L_CURLY@[145; 146) "{" | 92 | RECORD_FIELD_LIST@[145; 154) |
93 | RECORD_FIELD@[146; 153) | 93 | L_CURLY@[145; 146) "{" |
94 | NAME_REF@[146; 149) | 94 | RECORD_FIELD@[146; 153) |
95 | IDENT@[146; 149) "raw" | 95 | NAME_REF@[146; 149) |
96 | COLON@[149; 150) ":" | 96 | IDENT@[146; 149) "raw" |
97 | ARRAY_EXPR@[150; 153) | 97 | COLON@[149; 150) ":" |
98 | L_BRACK@[150; 151) "[" | 98 | ARRAY_EXPR@[150; 153) |
99 | LITERAL@[151; 152) | 99 | L_BRACK@[150; 151) "[" |
100 | INT_NUMBER@[151; 152) "0" | 100 | LITERAL@[151; 152) |
101 | R_BRACK@[152; 153) "]" | 101 | INT_NUMBER@[151; 152) "0" |
102 | R_CURLY@[153; 154) "}" | 102 | R_BRACK@[152; 153) "]" |
103 | ARG_LIST@[154; 156) | 103 | R_CURLY@[153; 154) "}" |
104 | L_PAREN@[154; 155) "(" | 104 | ARG_LIST@[154; 156) |
105 | R_PAREN@[155; 156) ")" | 105 | L_PAREN@[154; 155) "(" |
106 | SEMI@[156; 157) ";" | 106 | R_PAREN@[155; 156) ")" |
107 | WHITESPACE@[157; 158) "\n" | 107 | SEMI@[156; 157) ";" |
108 | R_CURLY@[158; 159) "}" | 108 | WHITESPACE@[157; 158) "\n" |
109 | R_CURLY@[158; 159) "}" | ||
109 | WHITESPACE@[159; 160) "\n" | 110 | WHITESPACE@[159; 160) "\n" |