UNPKG

javascript-obfuscator

Version:
14 lines (13 loc) 1.2 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 StringLiteralControlFlowReplacer extends AbstractControlFlowReplacer { protected static readonly usingExistingIdentifierChance: number; constructor(controlFlowCustomNodeFactory: TControlFlowCustomNodeFactory, identifierNamesGeneratorFactory: TIdentifierNamesGeneratorFactory, randomGenerator: IRandomGenerator, options: IOptions); replace(literalNode: ESTree.Literal, parentNode: ESTree.Node, controlFlowStorage: IControlFlowStorage): ESTree.Node; protected getControlFlowStorageCallNode(controlFlowStorageId: string, storageKey: string): ESTree.Node; }