ESM: Tidied up recently ported ops
This commit is contained in:
1 parent
905bc6699e
commit
6768038a2f
14 files changed
+47
-27
No files matched your search
@@ -1,18 +1,16 @@
|
||||
/**
|
||||
* Code functions.
|
||||
* Code resources.
|
||||
*
|
||||
* @author n1474335 [n1474335@gmail.com]
|
||||
*
|
||||
* @copyright Crown Copyright 2018
|
||||
* @license Apache-2.0
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* This tries to rename variable names in a code snippet according to a function.
|
||||
*
|
||||
* @param {string} input
|
||||
* @param {function} replacer - this function will be fed the token which should be renamed.
|
||||
* @param {function} replacer - This function will be fed the token which should be renamed.
|
||||
* @returns {string}
|
||||
*/
|
||||
export function replaceVariableNames(input, replacer) {
|
||||
|
||||
Reference in new issue
Block a user