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

Method topParserDefinitions

external/.scrollLibs.js:19583–19588  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19581 return result
19582 }
19583 get topParserDefinitions() {
19584 const arr = Object.values(this.cueMapWithDefinitions)
19585 arr.sort(Utils.makeSortByFn(definition => definition.popularity))
19586 arr.reverse()
19587 return arr
19588 }
19589 _getMyInScopeParserIds(target = this) {
19590 const parsersParticle = target.getParticle(ParsersConstants.inScope)
19591 const scopedDefinitionIds = target.myScopedParserDefinitions.map(def => def.id)

Callers

nothing calls this directly

Calls 3

sortMethod · 0.80
makeSortByFnMethod · 0.80
reverseMethod · 0.80

Tested by

no test coverage detected