Selaa lähdekoodia

Removed `getPreservedNames` method from AbstractIdentifierNamesGenerator

sanex3339 5 vuotta sitten
vanhempi
commit
16a7656984

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/index.browser.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/index.cli.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 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;
         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
      */
      */

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

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

Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä