diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/err/0022_bad_exprs.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/err/0022_bad_exprs.rast | 183 |
1 files changed, 183 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/err/0022_bad_exprs.rast b/crates/ra_syntax/test_data/parser/err/0022_bad_exprs.rast new file mode 100644 index 000000000..9f50c85e5 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/err/0022_bad_exprs.rast | |||
@@ -0,0 +1,183 @@ | |||
1 | SOURCE_FILE@[0; 112) | ||
2 | FN_DEF@[0; 33) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 3) " " | ||
5 | NAME@[3; 4) | ||
6 | IDENT@[3; 4) "a" | ||
7 | PARAM_LIST@[4; 6) | ||
8 | L_PAREN@[4; 5) "(" | ||
9 | R_PAREN@[5; 6) ")" | ||
10 | WHITESPACE@[6; 7) " " | ||
11 | BLOCK_EXPR@[7; 33) | ||
12 | BLOCK@[7; 33) | ||
13 | L_CURLY@[7; 8) "{" | ||
14 | WHITESPACE@[8; 9) " " | ||
15 | EXPR_STMT@[9; 17) | ||
16 | ARRAY_EXPR@[9; 17) | ||
17 | L_BRACK@[9; 10) "[" | ||
18 | LITERAL@[10; 11) | ||
19 | INT_NUMBER@[10; 11) "1" | ||
20 | COMMA@[11; 12) "," | ||
21 | WHITESPACE@[12; 13) " " | ||
22 | LITERAL@[13; 14) | ||
23 | INT_NUMBER@[13; 14) "2" | ||
24 | COMMA@[14; 15) "," | ||
25 | WHITESPACE@[15; 16) " " | ||
26 | ERROR@[16; 17) | ||
27 | AT@[16; 17) "@" | ||
28 | EXPR_STMT@[17; 18) | ||
29 | ERROR@[17; 18) | ||
30 | COMMA@[17; 18) "," | ||
31 | WHITESPACE@[18; 19) " " | ||
32 | STRUCT_DEF@[19; 26) | ||
33 | STRUCT_KW@[19; 25) "struct" | ||
34 | ERROR@[25; 26) | ||
35 | COMMA@[25; 26) "," | ||
36 | WHITESPACE@[26; 27) " " | ||
37 | LET_STMT@[27; 31) | ||
38 | LET_KW@[27; 30) "let" | ||
39 | ERROR@[30; 31) | ||
40 | R_BRACK@[30; 31) "]" | ||
41 | WHITESPACE@[31; 32) " " | ||
42 | R_CURLY@[32; 33) "}" | ||
43 | WHITESPACE@[33; 34) "\n" | ||
44 | FN_DEF@[34; 68) | ||
45 | FN_KW@[34; 36) "fn" | ||
46 | WHITESPACE@[36; 37) " " | ||
47 | NAME@[37; 38) | ||
48 | IDENT@[37; 38) "b" | ||
49 | PARAM_LIST@[38; 40) | ||
50 | L_PAREN@[38; 39) "(" | ||
51 | R_PAREN@[39; 40) ")" | ||
52 | WHITESPACE@[40; 41) " " | ||
53 | BLOCK_EXPR@[41; 68) | ||
54 | BLOCK@[41; 68) | ||
55 | L_CURLY@[41; 42) "{" | ||
56 | WHITESPACE@[42; 43) " " | ||
57 | EXPR_STMT@[43; 54) | ||
58 | CALL_EXPR@[43; 54) | ||
59 | PATH_EXPR@[43; 46) | ||
60 | PATH@[43; 46) | ||
61 | PATH_SEGMENT@[43; 46) | ||
62 | NAME_REF@[43; 46) | ||
63 | IDENT@[43; 46) "foo" | ||
64 | ARG_LIST@[46; 54) | ||
65 | L_PAREN@[46; 47) "(" | ||
66 | LITERAL@[47; 48) | ||
67 | INT_NUMBER@[47; 48) "1" | ||
68 | COMMA@[48; 49) "," | ||
69 | WHITESPACE@[49; 50) " " | ||
70 | LITERAL@[50; 51) | ||
71 | INT_NUMBER@[50; 51) "2" | ||
72 | COMMA@[51; 52) "," | ||
73 | WHITESPACE@[52; 53) " " | ||
74 | ERROR@[53; 54) | ||
75 | AT@[53; 54) "@" | ||
76 | EXPR_STMT@[54; 55) | ||
77 | ERROR@[54; 55) | ||
78 | COMMA@[54; 55) "," | ||
79 | WHITESPACE@[55; 56) " " | ||
80 | IMPL_DEF@[56; 60) | ||
81 | IMPL_KW@[56; 60) "impl" | ||
82 | EXPR_STMT@[60; 61) | ||
83 | ERROR@[60; 61) | ||
84 | COMMA@[60; 61) "," | ||
85 | WHITESPACE@[61; 62) " " | ||
86 | LET_STMT@[62; 65) | ||
87 | LET_KW@[62; 65) "let" | ||
88 | ERROR@[65; 66) | ||
89 | R_PAREN@[65; 66) ")" | ||
90 | WHITESPACE@[66; 67) " " | ||
91 | R_CURLY@[67; 68) "}" | ||
92 | WHITESPACE@[68; 69) "\n" | ||
93 | FN_DEF@[69; 111) | ||
94 | FN_KW@[69; 71) "fn" | ||
95 | WHITESPACE@[71; 72) " " | ||
96 | NAME@[72; 73) | ||
97 | IDENT@[72; 73) "c" | ||
98 | PARAM_LIST@[73; 75) | ||
99 | L_PAREN@[73; 74) "(" | ||
100 | R_PAREN@[74; 75) ")" | ||
101 | WHITESPACE@[75; 76) " " | ||
102 | BLOCK_EXPR@[76; 111) | ||
103 | BLOCK@[76; 111) | ||
104 | L_CURLY@[76; 77) "{" | ||
105 | WHITESPACE@[77; 78) " " | ||
106 | EXPR_STMT@[78; 93) | ||
107 | METHOD_CALL_EXPR@[78; 93) | ||
108 | PATH_EXPR@[78; 81) | ||
109 | PATH@[78; 81) | ||
110 | PATH_SEGMENT@[78; 81) | ||
111 | NAME_REF@[78; 81) | ||
112 | IDENT@[78; 81) "foo" | ||
113 | DOT@[81; 82) "." | ||
114 | NAME_REF@[82; 85) | ||
115 | IDENT@[82; 85) "bar" | ||
116 | ARG_LIST@[85; 93) | ||
117 | L_PAREN@[85; 86) "(" | ||
118 | LITERAL@[86; 87) | ||
119 | INT_NUMBER@[86; 87) "1" | ||
120 | COMMA@[87; 88) "," | ||
121 | WHITESPACE@[88; 89) " " | ||
122 | LITERAL@[89; 90) | ||
123 | INT_NUMBER@[89; 90) "2" | ||
124 | COMMA@[90; 91) "," | ||
125 | WHITESPACE@[91; 92) " " | ||
126 | ERROR@[92; 93) | ||
127 | AT@[92; 93) "@" | ||
128 | EXPR_STMT@[93; 94) | ||
129 | ERROR@[93; 94) | ||
130 | COMMA@[93; 94) "," | ||
131 | WHITESPACE@[94; 95) " " | ||
132 | EXPR_STMT@[95; 96) | ||
133 | ERROR@[95; 96) | ||
134 | R_BRACK@[95; 96) "]" | ||
135 | EXPR_STMT@[96; 97) | ||
136 | ERROR@[96; 97) | ||
137 | COMMA@[96; 97) "," | ||
138 | WHITESPACE@[97; 98) " " | ||
139 | TRAIT_DEF@[98; 104) | ||
140 | TRAIT_KW@[98; 103) "trait" | ||
141 | ERROR@[103; 104) | ||
142 | COMMA@[103; 104) "," | ||
143 | WHITESPACE@[104; 105) " " | ||
144 | LET_STMT@[105; 108) | ||
145 | LET_KW@[105; 108) "let" | ||
146 | ERROR@[108; 109) | ||
147 | R_PAREN@[108; 109) ")" | ||
148 | WHITESPACE@[109; 110) " " | ||
149 | R_CURLY@[110; 111) "}" | ||
150 | WHITESPACE@[111; 112) "\n" | ||
151 | error [16; 16): expected expression | ||
152 | error [17; 17): expected R_BRACK | ||
153 | error [17; 17): expected SEMI | ||
154 | error [17; 17): expected expression | ||
155 | error [18; 18): expected SEMI | ||
156 | error [25; 25): expected a name | ||
157 | error [26; 26): expected `;`, `{`, or `(` | ||
158 | error [30; 30): expected pattern | ||
159 | error [31; 31): expected SEMI | ||
160 | error [53; 53): expected expression | ||
161 | error [54; 54): expected SEMI | ||
162 | error [54; 54): expected expression | ||
163 | error [55; 55): expected SEMI | ||
164 | error [60; 60): expected type | ||
165 | error [60; 60): expected `{` | ||
166 | error [60; 60): expected expression | ||
167 | error [61; 61): expected SEMI | ||
168 | error [65; 65): expected pattern | ||
169 | error [65; 65): expected SEMI | ||
170 | error [65; 65): expected expression | ||
171 | error [92; 92): expected expression | ||
172 | error [93; 93): expected SEMI | ||
173 | error [93; 93): expected expression | ||
174 | error [94; 94): expected SEMI | ||
175 | error [95; 95): expected expression | ||
176 | error [96; 96): expected SEMI | ||
177 | error [96; 96): expected expression | ||
178 | error [97; 97): expected SEMI | ||
179 | error [103; 103): expected a name | ||
180 | error [104; 104): expected `{` | ||
181 | error [108; 108): expected pattern | ||
182 | error [108; 108): expected SEMI | ||
183 | error [108; 108): expected expression | ||