mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Removed getPreservedNames method from AbstractIdentifierNamesGenerator
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
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}
|
||||
|
||||
Reference in New Issue
Block a user