* @desc Return the string for a function * @param {String} [functionName] - Function name to trace from. If null, it returns the WHOLE builder stack * @returns {Array} The full string, of all the various functions. Trace optimized if functionName given
(functionName)
| 324 | * @returns {Array} The full string, of all the various functions. Trace optimized if functionName given |
| 325 | */ |
| 326 | getPrototypes(functionName) { |
| 327 | if (this.rootNode) { |
| 328 | this.rootNode.toString(); |
| 329 | } |
| 330 | if (functionName) { |
| 331 | return this.getPrototypesFromFunctionNames(this.traceFunctionCalls(functionName, []).reverse()); |
| 332 | } |
| 333 | return this.getPrototypesFromFunctionNames(Object.keys(this.functionMap)); |
| 334 | } |
| 335 | |
| 336 | /** |
| 337 | * @desc Get string from function names |
no test coverage detected