MCPcopy
hub / github.com/FredKSchott/snowpack / delete

Method delete

snowpack/src/commands/dev.ts:61–69  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

59 }
60 }
61 delete(key: string) {
62 const value = this.value(key);
63 this.keyToValue.delete(key);
64 if (value) {
65 for (const val of value) {
66 this.valueToKey.delete(val);
67 }
68 }
69 }
70 key(value: string) {
71 return this.valueToKey.get(value);
72 }

Callers 11

startServerFunction · 0.95
setEntryMethod · 0.80
removeRelationshipMethod · 0.80
broadcastMessageMethod · 0.80
disconnectClientMethod · 0.80
invalidateModuleFunction · 0.80
_loadFunction · 0.80
onWatchEventFunction · 0.80
autolayout.jsFile · 0.80
_markImportersAsChangedFunction · 0.80
_markImportersAsChangedFunction · 0.80

Calls 1

valueMethod · 0.95

Tested by

no test coverage detected