MES手机端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

10 lines
369 B

  1. 'use strict';
  2. const getVariableIdentifiers = require('../utils/get-variable-identifiers.js');
  3. const replaceReferenceIdentifier = require('./replace-reference-identifier.js');
  4. const renameVariable = (variable, name, fixer) =>
  5. getVariableIdentifiers(variable)
  6. .map(identifier => replaceReferenceIdentifier(identifier, name, fixer));
  7. module.exports = renameVariable;