IIdentifierObfuscatingReplacer.d.ts 708 B

123456789101112131415161718192021
  1. import * as ESTree from 'estree';
  2. import { TNodeWithLexicalScope } from '../../../../types/node/TNodeWithLexicalScope';
  3. import { IObfuscatingReplacer } from './IObfuscatingReplacer';
  4. export interface IIdentifierObfuscatingReplacer extends IObfuscatingReplacer <ESTree.Identifier> {
  5. /**
  6. * @param {string} nodeValue
  7. * @param {TNodeWithLexicalScope} lexicalScopeNode
  8. */
  9. storeGlobalName (nodeValue: string, lexicalScopeNode: TNodeWithLexicalScope): void;
  10. /**
  11. * @param {string} nodeValue
  12. * @param {TNodeWithLexicalScope} lexicalScopeNode
  13. */
  14. storeLocalName (nodeValue: string, lexicalScopeNode: TNodeWithLexicalScope): void;
  15. preserveName (name: any): void;
  16. }