9 lines
257 B
JavaScript
9 lines
257 B
JavaScript
|
'use strict';
|
||
|
const {getParenthesizedRange} = require('../utils/parentheses.js');
|
||
|
|
||
|
function replaceArgument(fixer, node, text, sourceCode) {
|
||
|
return fixer.replaceTextRange(getParenthesizedRange(node, sourceCode), text);
|
||
|
}
|
||
|
|
||
|
module.exports = replaceArgument;
|