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

Method _getFunction

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

* * @param {String} functionName * @return {FunctionNode} * @private

(functionName)

Source from the content-addressed store, hash-verified

463 * @private
464 */
465 _getFunction(functionName) {
466 if (!this._isFunction(functionName)) {
467 new Error(`Function ${functionName} not found`);
468 }
469 return this.functionMap[functionName];
470 }
471
472 _isFunction(functionName) {
473 return Boolean(this.functionMap[functionName]);

Callers 7

lookupReturnTypeMethod · 0.95
needsArgumentTypeMethod · 0.95
assignArgumentTypeMethod · 0.95

Calls 1

_isFunctionMethod · 0.95

Tested by

no test coverage detected