Commit 0dccbfd
authored
Remove SyntaxTokenCache.Entry (#12370)
While debugging some related code, I noticed this class didn't use a lock when getting the Entry, which smelled to me like a possible torn read/writes issue (and those suck). I mentioned this to Dustin to make sure I wasn't being goofy, and he thought that might be a concern here too, but then raised the valid point that the reason for it being a struct (to have a hash in addition to the SyntaxToken) wasn't even necessary.1 parent 984ece1 commit 0dccbfd
File tree
1 file changed
+6
-18
lines changed- src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Syntax/InternalSyntax
1 file changed
+6
-18
lines changedLines changed: 6 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | 18 | | |
31 | 19 | | |
32 | 20 | | |
| |||
38 | 26 | | |
39 | 27 | | |
40 | 28 | | |
41 | | - | |
| 29 | + | |
42 | 30 | | |
43 | | - | |
| 31 | + | |
44 | 32 | | |
45 | | - | |
| 33 | + | |
46 | 34 | | |
47 | 35 | | |
48 | | - | |
49 | | - | |
| 36 | + | |
| 37 | + | |
50 | 38 | | |
51 | 39 | | |
52 | 40 | | |
| |||
0 commit comments