This commit is contained in:
sanex3339
2016-12-06 20:35:21 +03:00
parent 9aeea2a2b5
commit f0fe518cf3
61 changed files with 1904 additions and 2184 deletions
@@ -3,23 +3,17 @@ import { ServiceIdentifiers } from '../../container/ServiceIdentifiers';
import * as format from 'string-template';
import { TNodeWithBlockStatement } from '../../types/node/TNodeWithBlockStatement';
import { TObfuscationEvent } from '../../types/event-emitters/TObfuscationEvent';
import { TStatement } from '../../types/node/TStatement';
import { ICustomNodeWithData } from '../../interfaces/custom-nodes/ICustomNodeWithData';
import { IOptions } from '../../interfaces/options/IOptions';
import { IStackTraceData } from '../../interfaces/stack-trace-analyzer/IStackTraceData';
import { IStorage } from '../../interfaces/storages/IStorage';
import { ObfuscationEvents } from '../../enums/ObfuscationEvents';
import { initializable } from '../../decorators/Initializable';
import { StringArrayTemplate } from '../../templates/custom-nodes/string-array-nodes/string-array-node/StringArrayTemplate';
import { AbstractCustomNode } from '../AbstractCustomNode';
import { NodeAppender } from '../../node/NodeAppender';
import { StringArrayStorage } from '../../storages/string-array/StringArrayStorage';
@injectable()
@@ -29,11 +23,6 @@ export class StringArrayNode extends AbstractCustomNode implements ICustomNodeWi
*/
public static ARRAY_RANDOM_LENGTH: number = 4;
/**
* @type {TObfuscationEvent}
*/
protected readonly appendEvent: TObfuscationEvent = ObfuscationEvents.AfterObfuscation;
/**
* @type {IStorage <string>}
*/
@@ -76,18 +65,6 @@ export class StringArrayNode extends AbstractCustomNode implements ICustomNodeWi
this.stringArrayRotateValue = stringArrayRotateValue;
}
/**
* @param blockScopeNode
* @param stackTraceData
*/
public appendNode (blockScopeNode: TNodeWithBlockStatement, stackTraceData: IStackTraceData[]): void {
if (!this.stringArray.getLength()) {
return;
}
NodeAppender.prependNode(blockScopeNode, this.getNode());
}
/**
* @returns {string}
*/