(
fragment: CompilerDiagnosticFragment,
collection: CompilerDiagnosticFragment[],
)
| 156 | } |
| 157 | |
| 158 | function acceptDedupedDiagnostic( |
| 159 | fragment: CompilerDiagnosticFragment, |
| 160 | collection: CompilerDiagnosticFragment[], |
| 161 | ): void { |
| 162 | const key = normalizeDiagnosticKey(fragment.location, fragment.message); |
| 163 | if (seenDiagnostics.has(key)) { |
| 164 | return; |
| 165 | } |
| 166 | seenDiagnostics.add(key); |
| 167 | collection.push(fragment); |
| 168 | accept(fragment); |
| 169 | } |
| 170 | |
| 171 | return { |
| 172 | push(fragment: XcodebuildRunStateFragment): void { |
no test coverage detected