UNPKG

javascript-obfuscator

Version:
15 lines (14 loc) 1.26 kB
import * as ESTree from 'estree'; import { TControlFlowCustomNodeFactory } from '../../../types/container/custom-nodes/TControlFlowCustomNodeFactory'; import { TIdentifierNamesGeneratorFactory } from '../../../types/container/generators/TIdentifierNamesGeneratorFactory'; import { IControlFlowStorage } from '../../../interfaces/storages/control-flow-transformers/IControlFlowStorage'; import { IOptions } from '../../../interfaces/options/IOptions'; import { IRandomGenerator } from '../../../interfaces/utils/IRandomGenerator'; import { AbstractControlFlowReplacer } from './AbstractControlFlowReplacer'; export declare class StringArrayCallControlFlowReplacer extends AbstractControlFlowReplacer { private static readonly usingExistingIdentifierChance; constructor(controlFlowCustomNodeFactory: TControlFlowCustomNodeFactory, identifierNamesGeneratorFactory: TIdentifierNamesGeneratorFactory, randomGenerator: IRandomGenerator, options: IOptions); replace(literalNode: ESTree.Literal, parentNode: ESTree.Node, controlFlowStorage: IControlFlowStorage): ESTree.Node; generateStorageKey(controlFlowStorage: IControlFlowStorage): string; protected getControlFlowStorageCallNode(controlFlowStorageId: string, storageKey: string): ESTree.Node; }