Commit 054202c
committed
Remove syntax annotations from the Razor compiler
Here's the thing: the Razor compiler doesn't need syntax annotations. Originally, annotations were added to Roslyn to support the IDE when making tree transformations. However, Razor tooling doesn't actually perform any tree transformations. So, tooling doesn't use annotations. The problem is that the compiler *does* use annotations to stuff data onto syntax nodes -- data that should have been part of the syntax model in the first place.
Now that all compiler data has been moved into the syntax model, syntax annotations are pure overhead and can be removed.1 parent 29deee8 commit 054202c
File tree
15 files changed
+217
-792
lines changed- src
- Compiler
- Microsoft.CodeAnalysis.Razor.Compiler/src/Language
- Legacy
- Syntax
- Generated
- InternalSyntax
- tools/RazorSyntaxGenerator
15 files changed
+217
-792
lines changedLines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
638 | 638 | | |
639 | 639 | | |
640 | 640 | | |
641 | | - | |
642 | | - | |
643 | 641 | | |
644 | 642 | | |
645 | 643 | | |
| |||
Lines changed: 133 additions & 373 deletions
Large diffs are not rendered by default.
Lines changed: 40 additions & 80 deletions
Large diffs are not rendered by default.
Lines changed: 8 additions & 44 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 14 | + | |
| 15 | + | |
18 | 16 | | |
19 | 17 | | |
20 | 18 | | |
| |||
30 | 28 | | |
31 | 29 | | |
32 | 30 | | |
33 | | - | |
34 | | - | |
| 31 | + | |
| 32 | + | |
35 | 33 | | |
36 | 34 | | |
37 | 35 | | |
38 | | - | |
| 36 | + | |
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
42 | 40 | | |
43 | 41 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
| 42 | + | |
59 | 43 | | |
60 | 44 | | |
61 | 45 | | |
| |||
171 | 155 | | |
172 | 156 | | |
173 | 157 | | |
174 | | - | |
175 | | - | |
176 | 158 | | |
177 | 159 | | |
178 | 160 | | |
| |||
182 | 164 | | |
183 | 165 | | |
184 | 166 | | |
185 | | - | |
| 167 | + | |
186 | 168 | | |
187 | 169 | | |
188 | 170 | | |
189 | 171 | | |
190 | 172 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
| 173 | + | |
210 | 174 | | |
211 | 175 | | |
212 | 176 | | |
| |||
Lines changed: 0 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | 25 | | |
52 | 26 | | |
53 | 27 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
Lines changed: 17 additions & 36 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
| 188 | + | |
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
| |||
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
| 223 | + | |
228 | 224 | | |
229 | 225 | | |
230 | 226 | | |
| |||
245 | 241 | | |
246 | 242 | | |
247 | 243 | | |
248 | | - | |
249 | | - | |
| 244 | + | |
| 245 | + | |
250 | 246 | | |
251 | 247 | | |
252 | 248 | | |
| |||
286 | 282 | | |
287 | 283 | | |
288 | 284 | | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
| 285 | + | |
295 | 286 | | |
296 | 287 | | |
297 | 288 | | |
| |||
305 | 296 | | |
306 | 297 | | |
307 | 298 | | |
308 | | - | |
309 | | - | |
| 299 | + | |
| 300 | + | |
310 | 301 | | |
311 | 302 | | |
312 | 303 | | |
| |||
358 | 349 | | |
359 | 350 | | |
360 | 351 | | |
361 | | - | |
362 | | - | |
| 352 | + | |
| 353 | + | |
363 | 354 | | |
364 | 355 | | |
365 | 356 | | |
366 | 357 | | |
367 | 358 | | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
| 359 | + | |
374 | 360 | | |
375 | 361 | | |
376 | 362 | | |
| |||
384 | 370 | | |
385 | 371 | | |
386 | 372 | | |
387 | | - | |
388 | | - | |
| 373 | + | |
| 374 | + | |
389 | 375 | | |
390 | 376 | | |
391 | 377 | | |
| |||
425 | 411 | | |
426 | 412 | | |
427 | 413 | | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
| 414 | + | |
434 | 415 | | |
435 | 416 | | |
436 | 417 | | |
| |||
Lines changed: 3 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 13 | + | |
| 14 | + | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 30 | + | |
37 | 31 | | |
38 | 32 | | |
39 | 33 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | | - | |
| 15 | + | |
17 | 16 | | |
0 commit comments