This repository was archived by the owner on Jul 12, 2022. It is now read-only.
Commit 0458032
committed
Preserve leading trivia when deleting TestClassAttribute
I noticed diffs of the form:
- /// <summary>
- /// Verify the functioning of the BuildErrorEventArg class.
- /// </summary>
- [TestClass]
Where not only was the not-needed-in-xunit attribute removed, but its
removal also deleted class-level doc comments. This change preserves
leading trivia on the deleted AttributeList. That trivia is normally
blank (so this doesn't break the existing scenario), but a leading comment
or doc comment will be present there.1 parent a35a6cd commit 0458032
2 files changed
Lines changed: 37 additions & 1 deletion
File tree
- src
- XUnitConverter.Tests
- XUnitConverter
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
106 | 142 | | |
107 | 143 | | |
108 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| |||
0 commit comments