replace-argument.js 257 B

12345678
  1. 'use strict';
  2. const {getParenthesizedRange} = require('../utils/parentheses.js');
  3. function replaceArgument(fixer, node, text, sourceCode) {
  4. return fixer.replaceTextRange(getParenthesizedRange(node, sourceCode), text);
  5. }
  6. module.exports = replaceArgument;