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

Function unannotatedApiIds

packages/tools/api-diff/src/MigrationDoc.ts:415–433  ·  view source on GitHub ↗
(
  diff: ApiDiff,
  annotations: ReadonlyMap<string, MigrationAnnotation>,
  importMapSections = ""
)

Source from the content-addressed store, hash-verified

413}
414
415export const unannotatedApiIds = (
416 diff: ApiDiff,
417 annotations: ReadonlyMap<string, MigrationAnnotation>,
418 importMapSections = ""
419): ReadonlyMap<string, ReadonlyArray<string>> => {
420 const modules = new Map<string, Array<string>>()
421 for (const entry of migrationEntries(diff, annotations, importMapSections)) {
422 if (annotations.has(entry.id)) {
423 continue
424 }
425 const ids = modules.get(entry.module)
426 if (ids === undefined) {
427 modules.set(entry.module, [entry.id])
428 } else {
429 ids.push(entry.id)
430 }
431 }
432 return modules
433}
434
435export const unannotatedModuleIds = (
436 diff: ApiDiff,

Callers 2

ApiDiffClass · 0.90
renderMissingAnnotationsFunction · 0.85

Calls 5

migrationEntriesFunction · 0.85
hasMethod · 0.65
getMethod · 0.65
setMethod · 0.65
pushMethod · 0.65

Tested by

no test coverage detected