MCPcopy Index your code
hub / github.com/microsoft/vscode-languageserver-node / delete

Method delete

jsonrpc/src/linkedMap.ts:90–99  ·  view source on GitHub ↗
(key: K)

Source from the content-addressed store, hash-verified

88 }
89
90 public delete(key: K): boolean {
91 const item = this._map.get(key);
92 if (!item) {
93 return false;
94 }
95 this._map.delete(key);
96 this.removeItem(item);
97 this._size--;
98 return true;
99 }
100
101 public shift(): V | undefined {
102 if (!this._head && !this._tail) {

Callers

nothing calls this directly

Calls 3

removeItemMethod · 0.95
deleteMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected