MCPcopy Create free account
hub / github.com/breck7/scroll / makeNameSearchIndex

Method makeNameSearchIndex

ScrollSetCLI.js:70–74  ·  view source on GitHub ↗
(files = this.concepts.slice(0).reverse())

Source from the content-addressed store, hash-verified

68 }
69
70 makeNameSearchIndex(files = this.concepts.slice(0).reverse()) {
71 const map = new Map()
72 files.forEach(parsedConcept => this.makeNames(parsedConcept).forEach(name => map.set(name.toLowerCase(), parsedConcept)))
73 return map
74 }
75
76 makeNames(concept) {
77 return [concept.id]

Callers 1

searchIndexMethod · 0.95

Calls 5

makeNamesMethod · 0.95
reverseMethod · 0.80
sliceMethod · 0.80
forEachMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected