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

Method lookupFunktionsByRange

deps/v8/tools/parse-processor.mjs:909–919  ·  view source on GitHub ↗
(start, end)

Source from the content-addressed store, hash-verified

907
908 // Iterates over all functions and tries to find matching ones.
909 lookupFunktionsByRange(start, end) {
910 let results = [];
911 this.idToScript.forEach(script => {
912 script.forEach(funktion => {
913 if (funktion.startPosition == start && funktion.endPosition == end) {
914 results.push(funktion);
915 }
916 });
917 });
918 return results;
919 }
920 lookupFunktionByRange(start, end) {
921 let results = this.lookupFunktionsByRange(start, end);
922 if (results.length != 1) throw "Could not find unique function by range";

Callers 1

lookupFunktionByRangeMethod · 0.95

Calls 2

forEachMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected