MCPcopy Index your code
hub / github.com/nodejs/node / getWordSpans

Function getWordSpans

test/fixtures/snapshot/typescript.js:142448–142454  ·  view source on GitHub ↗
(word, stringToWordSpans)

Source from the content-addressed store, hash-verified

142446 return bestMatch;
142447 }
142448 function getWordSpans(word, stringToWordSpans) {
142449 var spans = stringToWordSpans.get(word);
142450 if (!spans) {
142451 stringToWordSpans.set(word, spans = breakIntoWordSpans(word));
142452 }
142453 return spans;
142454 }
142455 function matchTextChunk(candidate, chunk, stringToWordSpans) {
142456 var index = indexOfIgnoringCase(candidate, chunk.textLowerCase);
142457 if (index === 0) {

Callers 1

matchTextChunkFunction · 0.85

Calls 3

breakIntoWordSpansFunction · 0.85
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected