示例#1
0
 /// <summary>
 /// Create new MochaScriptFunctionCollection.
 /// </summary>
 /// <param name="functions">To be functions.</param>
 public MochaScriptFunctionCollection(MochaScriptDebugger debugger, IEnumerable <MochaScriptFunction> functions)
     : this(debugger) {
     this.functions.AddRange(functions);
 }
示例#2
0
 /// <summary>
 /// Create new MochaScriptFunctionCollection.
 /// </summary>
 /// <param name="debugger">Based debugger.</param>
 public MochaScriptFunctionCollection(MochaScriptDebugger debugger)
 {
     Debugger  = debugger;
     functions = new List <MochaScriptFunction>();
 }