MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / fromPackageNames

Method fromPackageNames

src/shared/pub/pub_add.ts:12–19  ·  view source on GitHub ↗
(packages: string[])

Source from the content-addressed store, hash-verified

10 ) { }
11
12 static fromPackageNames(packages: string[]): PackageCacheData {
13 const packageMap = new Map<string, string | undefined>();
14 packages.forEach((p) => packageMap.set(p, undefined));
15 return new PackageCacheData(
16 new Date().getTime(),
17 packageMap,
18 );
19 }
20
21 public get packageNames() {
22 // TODO: Can we avoid this and just iterate in the callee, since we often

Callers 2

add.test.tsFile · 0.80
fetchPackageNamesMethod · 0.80

Calls 1

setMethod · 0.80

Tested by

no test coverage detected