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

Function unannotatedApiIds

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

Source from the content-addressed store, hash-verified

397}
398
399export const unannotatedApiIds = (
400 diff: ApiDiff,
401 annotations: ReadonlyMap<string, MigrationAnnotation>,
402 importMapSections = ""
403): ReadonlyMap<string, ReadonlyArray<string>> => {
404 const modules = new Map<string, Array<string>>()
405 for (const entry of migrationEntries(diff, annotations, importMapSections)) {
406 if (annotations.has(entry.id)) {
407 continue
408 }
409 const ids = modules.get(entry.module)
410 if (ids === undefined) {
411 modules.set(entry.module, [entry.id])
412 } else {
413 ids.push(entry.id)
414 }
415 }
416 return modules
417}
418
419export const unannotatedModuleIds = (
420 diff: ApiDiff,

Callers 2

ApiDiffClass · 0.90
renderMissingAnnotationsFunction · 0.85

Calls 5

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

Tested by

no test coverage detected