Added prefixes to the generated global identifiers of the added code

This commit is contained in:
sanex3339
2020-03-04 09:57:38 +03:00
parent e36138d40d
commit 6d03a2bacf
28 changed files with 345 additions and 209 deletions
@@ -90,8 +90,8 @@ export class StringArrayRotateFunctionCodeHelper extends AbstractCustomCodeHelpe
* @returns {string}
*/
protected getCodeHelperTemplate (): string {
const timesName: string = this.identifierNamesGenerator.generateForGlobalScope();
const whileFunctionName: string = this.identifierNamesGenerator.generateForGlobalScope();
const timesName: string = this.identifierNamesGenerator.generateNext();
const whileFunctionName: string = this.identifierNamesGenerator.generateNext();
const preservedNames: string[] = [`^${this.stringArrayName}$`];
let code: string = '';