MCPcopy Index your code
hub / github.com/gpujs/gpu.js / getPrototypes

Method getPrototypes

src/backend/function-builder.js:326–334  ·  view source on GitHub ↗

* @desc Return the string for a function * @param {String} [functionName] - Function name to trace from. If null, it returns the WHOLE builder stack * @returns {Array} The full string, of all the various functions. Trace optimized if functionName given

(functionName)

Source from the content-addressed store, hash-verified

324 * @returns {Array} The full string, of all the various functions. Trace optimized if functionName given
325 */
326 getPrototypes(functionName) {
327 if (this.rootNode) {
328 this.rootNode.toString();
329 }
330 if (functionName) {
331 return this.getPrototypesFromFunctionNames(this.traceFunctionCalls(functionName, []).reverse());
332 }
333 return this.getPrototypesFromFunctionNames(Object.keys(this.functionMap));
334 }
335
336 /**
337 * @desc Get string from function names

Callers 2

getPrototypeStringMethod · 0.95
translateSourceMethod · 0.80

Calls 3

traceFunctionCallsMethod · 0.95
toStringMethod · 0.45

Tested by

no test coverage detected