MCPcopy Create free account
hub / github.com/PatrickSys/codebase-context / isComplementaryPatternConflict

Function isComplementaryPatternConflict

src/patterns/semantics.ts:23–38  ·  view source on GitHub ↗
(
  category: string,
  primaryName: string,
  alternativeName: string
)

Source from the content-addressed store, hash-verified

21}
22
23export function isComplementaryPatternConflict(
24 category: string,
25 primaryName: string,
26 alternativeName: string
27): boolean {
28 const set = complementaryPairs.get(category);
29 if (!set) return false;
30
31 const primary = normalizePatternName(primaryName);
32 const alternative = normalizePatternName(alternativeName);
33
34 if (!set.has(primary)) return false;
35 if (!set.has(alternative)) return false;
36
37 return primary !== alternative;
38}
39
40export function isComplementaryPatternCategory(category: string, patternNames: string[]): boolean {
41 const set = complementaryPairs.get(category);

Callers 3

handleFunction · 0.85
handleFunction · 0.85

Calls 3

normalizePatternNameFunction · 0.85
hasMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected