Explorar o código

Removed `getPreservedNames` method from AbstractIdentifierNamesGenerator

sanex3339 %!s(int64=5) %!d(string=hai) anos
pai
achega
16a7656984

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/index.browser.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/index.cli.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/index.js


+ 0 - 14
src/generators/identifier-names-generators/AbstractIdentifierNamesGenerator.ts

@@ -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
      */

+ 0 - 5
src/interfaces/generators/identifier-names-generators/IIdentifierNamesGenerator.ts

@@ -21,11 +21,6 @@ export interface IIdentifierNamesGenerator {
      */
     generateWithPrefix (nameLength?: number): string;
 
-    /**
-     * @returns {Set<string>}
-     */
-    getPreservedNames (): Set<string>;
-
     /**
      * @param {string} identifierName
      * @returns {boolean}

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio