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

Method getFunktionAtStartPosition

deps/v8/tools/parse-processor.mjs:183–191  ·  view source on GitHub ↗
(start)

Source from the content-addressed store, hash-verified

181 }
182
183 getFunktionAtStartPosition(start) {
184 if (!this.isEval && start === 0) {
185 throw 'position 0 is reserved for the script';
186 }
187 if (this.finalized) {
188 return this.funktions.find(funktion => funktion.start == start);
189 }
190 return this.funktions[start];
191 }
192
193 // Return the innermost function at the given source position.
194 getFunktionForPosition(position) {

Callers 6

getOrCreateFunctionMethod · 0.80
processFirstExecutionMethod · 0.80
processCompileMethod · 0.80
processBaselineLazyMethod · 0.80
processOptimizeLazyMethod · 0.80

Calls 1

findMethod · 0.65

Tested by

no test coverage detected