|
@@ -41,20 +41,6 @@ export abstract class AbstractIdentifierNamesGenerator implements IIdentifierNam
|
|
this.options = options;
|
|
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
|
|
* @param {string} name
|
|
*/
|
|
*/
|