MCPcopy Create free account
hub / github.com/getsentry/XcodeBuildMCP / acceptDedupedDiagnostic

Function acceptDedupedDiagnostic

src/utils/xcodebuild-run-state.ts:158–169  ·  view source on GitHub ↗
(
    fragment: CompilerDiagnosticFragment,
    collection: CompilerDiagnosticFragment[],
  )

Source from the content-addressed store, hash-verified

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 {

Callers 1

pushFunction · 0.85

Calls 3

normalizeDiagnosticKeyFunction · 0.85
acceptFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected