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

Method getStringFromFunctionNames

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

* @desc Get string from function names * @param {String[]} functionList - List of function to build string * @returns {String} The string, of all the various functions. Trace optimized if functionName given

(functionList)

Source from the content-addressed store, hash-verified

339 * @returns {String} The string, of all the various functions. Trace optimized if functionName given
340 */
341 getStringFromFunctionNames(functionList) {
342 const ret = [];
343 for (let i = 0; i < functionList.length; ++i) {
344 const node = this.functionMap[functionList[i]];
345 if (node) {
346 ret.push(this.functionMap[functionList[i]].toString());
347 }
348 }
349 return ret.join('\n');
350 }
351
352 /**
353 * @desc Return string of all functions converted

Callers 3

getStringMethod · 0.95

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected