Method
fromJSON
(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 |
Tested by
no test coverage detected