MCPcopy Create free account
hub / github.com/Effect-TS/effect / isRemovalCoveredByModule

Function isRemovalCoveredByModule

packages/tools/api-diff/src/MigrationDoc.ts:166–178  ·  view source on GitHub ↗
(
  id: string,
  removed: ReadonlySet<string>,
  annotations: ReadonlyMap<string, MigrationAnnotation>
)

Source from the content-addressed store, hash-verified

164}
165
166const isRemovalCoveredByModule = (
167 id: string,
168 removed: ReadonlySet<string>,
169 annotations: ReadonlyMap<string, MigrationAnnotation>
170): boolean => {
171 const separator = id.indexOf("#")
172 const module = id.slice(0, separator)
173 if (separator === -1 || !removed.has(module) || annotations.get(module)?.replacement !== "none") {
174 return false
175 }
176 const annotation = annotations.get(id)
177 return annotation === undefined || annotation.replacement === "none"
178}
179
180const migrationEntries = (
181 diff: ApiDiff,

Callers 1

migrationEntriesFunction · 0.85

Calls 2

getMethod · 0.65
hasMethod · 0.45

Tested by

no test coverage detected