MCPcopy Create free account
hub / github.com/cursorless-dev/cursorless / clone

Method clone

src/core/IndividualHatMap.ts:37–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 }
36
37 clone() {
38 const ret = new IndividualHatMap(this.graph);
39
40 this.getEntries().forEach(([key, token]) => {
41 ret.addTokenByKey(key, { ...token });
42 });
43
44 return ret;
45 }
46
47 getEntries() {
48 this.checkExpired();

Callers 1

takePrePhraseSnapshotMethod · 0.80

Calls 2

getEntriesMethod · 0.95
addTokenByKeyMethod · 0.95

Tested by

no test coverage detected