Commit 2fa97fe
committed
Keep tracked nodes in a list
Lazily-enumerated nodes which are passed to TrackNodes and then
enumerated a second time can be garbage collected between the two
passes. If this occurs, the node tracking will fail. We resolve the
issue by ensuring the nodes are held in an eagerly-evaluated list.
See dotnet/roslyn#619581 parent 01f7674 commit 2fa97fe
File tree
1 file changed
+3
-1
lines changed- StyleCop.Analyzers/StyleCop.Analyzers.CodeFixes/ReadabilityRules
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
120 | 122 | | |
121 | 123 | | |
122 | 124 | | |
| |||
0 commit comments