MCPcopy Create free account
hub / github.com/nodejs/node / printSorted

Method printSorted

deps/v8/tools/locs.py:288–290  ·  view source on GitHub ↗
(self, key, count, reverse, out)

Source from the content-addressed store, hash-verified

286 print(self.groups[key].to_string(self.maxGroupWidth()), file=file)
287
288 def printSorted(self, key, count, reverse, out):
289 for unit in sorted(list(self.units.values()), key=key, reverse=reverse)[:count]:
290 print(unit.to_string(), file=out)
291
292 def addHeaderDeps(self, source_dependencies, header_dependents):
293 self.source_dependencies = source_dependencies

Callers 1

MainFunction · 0.95

Calls 5

sortedFunction · 0.85
printFunction · 0.70
listFunction · 0.50
valuesMethod · 0.45
to_stringMethod · 0.45

Tested by

no test coverage detected