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

Method addTokenByKey

src/core/IndividualHatMap.ts:52–55  ·  view source on GitHub ↗
(key: string, token: Token)

Source from the content-addressed store, hash-verified

50 }
51
52 private addTokenByKey(key: string, token: Token) {
53 this.map[key] = token;
54 this.getDocumentTokenList(token.editor.document).push(token);
55 }
56
57 addToken(hatStyle: HatStyleName, character: string, token: Token) {
58 this.addTokenByKey(HatTokenMap.getKey(hatStyle, character), token);

Callers 2

cloneMethod · 0.95
addTokenMethod · 0.95

Calls 1

getDocumentTokenListMethod · 0.95

Tested by

no test coverage detected