Removed getPreservedNames method from AbstractIdentifierNamesGenerator

This commit is contained in:
sanex3339
2020-02-14 01:35:33 +03:00
parent a5077431de
commit 16a7656984
5 changed files with 3 additions and 22 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
@@ -41,20 +41,6 @@ export abstract class AbstractIdentifierNamesGenerator implements IIdentifierNam
this.options = options;
}
/**
* @returns {Set<string>}
*/
public getPreservedNames (): Set<string> {
const lexicalScopesPreservedNames: Set<string>[] = Array.from(this.lexicalScopesPreservedNamesMap.values());
const preservedNames: string[] = Array.from(this.preservedNamesSet);
for (const lexicalScopePreservedNames of lexicalScopesPreservedNames) {
preservedNames.push(...lexicalScopePreservedNames);
}
return new Set(preservedNames);
}
/**
* @param {string} name
*/
@@ -21,11 +21,6 @@ export interface IIdentifierNamesGenerator {
*/
generateWithPrefix (nameLength?: number): string;
/**
* @returns {Set<string>}
*/
getPreservedNames (): Set<string>;
/**
* @param {string} identifierName
* @returns {boolean}