Ver Fonte

Removed `getPreservedNames` method from AbstractIdentifierNamesGenerator

sanex3339 há 5 anos atrás
pai
commit
16a7656984

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/index.browser.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/index.cli.js


Diff do ficheiro suprimidas por serem muito extensas
+ 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}

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff