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

Method fromJSON

src/backend/function-builder.js:390–397  ·  view source on GitHub ↗
(jsonFunctionNodes, FunctionNode)

Source from the content-addressed store, hash-verified

388 }
389
390 fromJSON(jsonFunctionNodes, FunctionNode) {
391 this.functionMap = {};
392 for (let i = 0; i < jsonFunctionNodes.length; i++) {
393 const jsonFunctionNode = jsonFunctionNodes[i];
394 this.functionMap[jsonFunctionNode.settings.name] = new FunctionNode(jsonFunctionNode.ast, jsonFunctionNode.settings);
395 }
396 return this;
397 }
398
399 /**
400 * @desc Get string for a particular function name

Callers 1

fromKernelMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected