ICustomNodeGroup.ts 887 B

12345678910111213141516171819202122232425262728
  1. import { TNodeWithStatements } from '../../types/node/TNodeWithStatements';
  2. import { ICustomNode } from './ICustomNode';
  3. import { IInitializable } from '../IInitializable';
  4. import { ICallsGraphData } from '../analyzers/calls-graph-analyzer/ICallsGraphData';
  5. import { CustomNode } from '../../enums/custom-nodes/CustomNode';
  6. import { ObfuscationEvent } from '../../enums/event-emitters/ObfuscationEvent';
  7. export interface ICustomNodeGroup extends IInitializable {
  8. /**
  9. * @param nodeWithStatements
  10. * @param callsGraphData
  11. */
  12. appendCustomNodes (nodeWithStatements: TNodeWithStatements, callsGraphData: ICallsGraphData[]): void;
  13. /**
  14. * @returns {ObfuscationEvent}
  15. */
  16. getAppendEvent (): ObfuscationEvent;
  17. /**
  18. * @type {Map <CustomNode, ICustomNode>}
  19. */
  20. getCustomNodes (): Map <CustomNode, ICustomNode>;
  21. initialize (): void;
  22. }