cli/existingentitymodifier.js
function rewrite_code(code, node, replacement_string) {
        return code.substr(0, node.start.pos) + replacement_string + code.substr(node.end.endpos);
    }
function rewrite_code(code, node, replacement_string) {
        return code.substr(0, node.start.pos) + replacement_string + code.substr(node.end.endpos);
    }
function rewrite_code ( code , node , replacement_string ) { return code . substr ( 0 , node . start . pos ) + replacement_string + code . substr ( node . end . endpos ) ; }
Modify code string with a new value based on start and end position of an UglifyJS.AST_Node
@param  {string} code                code to modify
@param  {UglifyJS.AST_Node} node     node to replace the content for
@param  {string} replacement_string  replacement js encoded value for the property
@return {string}                     modified code
Modify code string with a new value based on start and end position of an UglifyJS . AST_Node