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

Function isRemovalCoveredByModule

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

Source from the content-addressed store, hash-verified

172}
173
174const isRemovalCoveredByModule = (
175 id: string,
176 removed: ReadonlySet<string>,
177 annotations: ReadonlyMap<string, MigrationAnnotation>
178): boolean => {
179 const separator = id.indexOf("#")
180 const module = id.slice(0, separator)
181 if (separator === -1 || !removed.has(module) || annotations.get(module)?.replacement !== "none") {
182 return false
183 }
184 const annotation = annotations.get(id)
185 return annotation === undefined || annotation.replacement === "none"
186}
187
188const migrationEntries = (
189 diff: ApiDiff,

Callers 1

migrationEntriesFunction · 0.85

Calls 3

sliceMethod · 0.80
hasMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected