* @desc Get string for a particular function name * @param {String} functionName - Function name to trace from. If null, it returns the WHOLE builder stack * @returns {String} settings - The string, of all the various functions. Trace optimized if functionName given
(functionName)
| 402 | * @returns {String} settings - The string, of all the various functions. Trace optimized if functionName given |
| 403 | */ |
| 404 | getString(functionName) { |
| 405 | if (functionName) { |
| 406 | return this.getStringFromFunctionNames(this.traceFunctionCalls(functionName).reverse()); |
| 407 | } |
| 408 | return this.getStringFromFunctionNames(Object.keys(this.functionMap)); |
| 409 | } |
| 410 | |
| 411 | lookupReturnType(functionName, ast, requestingNode) { |
| 412 | if (ast.type !== 'CallExpression') { |
no test coverage detected