imports/vx/server/code/vxapp.js
/**
     * Augment VXApp calls with the name of the function for diagnostic support.
     *
     * @param {string} value Raw function text from function collection.
     * @param {string} functionName Function name.
     * @return {string} Function text with all makeTask calls augmented.
     */
Augment VXApp calls with the name of the function for diagnostic support.
@param {string} value Raw function text from function collection.
@param {string} functionName Function name.
@return {string} Function text with all makeTask calls augmented.
Augment VXApp calls with the name of the function for diagnostic support . @param { string } value Raw function text from function collection . @param { string } functionName Function name . @return { string } Function text with all makeTask calls augmented .
augmentFunctionWithName(value, functionName) {
        const replacement = `, "${functionName}"`
        let indexVXApp = value.indexOf("VXApp")
        while (indexVXApp >= 0) {
            const indexStartParen = value.indexOf("(", indexVXApp)
            const indexEndParen = value.indexOf(")", indexStartParen)
            value = `${value.substring(0, indexEndParen)}${replacement}` +
                `${value.substr(indexEndParen)}`
            indexVXApp = value.indexOf("VXApp", indexEndParen + replacement.length)
        }
        return value
    }
augmentFunctionWithName ( value , functionName ) { const replacement = ` ${ functionName } ` let indexVXApp = value . indexOf ( "VXApp" ) while ( indexVXApp >= 0 ) { const indexStartParen = value . indexOf ( "(" , indexVXApp ) const indexEndParen = value . indexOf ( ")" , indexStartParen ) value = ` ${ value . substring ( 0 , indexEndParen ) } ${ replacement } ` + ` ${ value . substr ( indexEndParen ) } ` indexVXApp = value . indexOf ( "VXApp" , indexEndParen + replacement . length ) } return value }
Augment VXApp calls with the name of the function for diagnostic support.
Augment VXApp calls with the name of the function for diagnostic support .