* @desc Add the function node directly * * @param {FunctionNode} functionNode - functionNode to add *
(functionNode)
| 247 | * |
| 248 | */ |
| 249 | addFunctionNode(functionNode) { |
| 250 | if (!functionNode.name) throw new Error('functionNode.name needs set'); |
| 251 | this.functionMap[functionNode.name] = functionNode; |
| 252 | if (functionNode.isRootKernel) { |
| 253 | this.rootNode = functionNode; |
| 254 | } |
| 255 | } |
| 256 | |
| 257 | /** |
| 258 | * @desc Trace all the depending functions being called, from a single function |