utils split on few utils classes

This commit is contained in:
sanex3339
2016-12-07 18:59:26 +03:00
parent e48892e563
commit bbe95afcaa
48 changed files with 845 additions and 751 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import { TStatement } from '../types/node/TStatement';
import { IStackTraceData } from '../interfaces/stack-trace-analyzer/IStackTraceData';
import { Utils } from '../Utils';
import { RandomGeneratorUtils } from '../utils/RandomGeneratorUtils';
/**
* This class appends node into a first deepest BlockStatement in order of function calls
@@ -101,7 +101,7 @@ export class NodeAppender {
* @param stackTraceRootLength
*/
public static getRandomStackTraceIndex (stackTraceRootLength: number): number {
return Utils.getRandomInteger(0, Math.max(0, Math.round(stackTraceRootLength - 1)));
return RandomGeneratorUtils.getRandomInteger(0, Math.max(0, Math.round(stackTraceRootLength - 1)));
}
/**
+1 -1
View File
@@ -9,7 +9,7 @@ import { TStatement } from '../types/node/TStatement';
import { NodeType } from '../enums/NodeType';
import { Node } from './Node';
import { Utils } from '../Utils';
import { Utils } from '../utils/Utils';
export class NodeUtils {
/**