Beispiel #1
0
		/// <summary>
		/// Helper function for
		/// <see cref="GetAllFunctions(Rhino.Debug.DebuggableScript)">GetAllFunctions(Rhino.Debug.DebuggableScript)</see>
		/// .
		/// </summary>
		private static void CollectFunctions_r(DebuggableScript function, ObjArray array)
		{
			array.Add(function);
			for (int i = 0; i != function.GetFunctionCount(); ++i)
			{
				CollectFunctions_r(function.GetFunction(i), array);
			}
		}
Beispiel #2
0
 private static void NotifyDebugger(Context cx, DebuggableScript dscript, string debugSource)
 {
     cx.m_Debugger.HandleCompilationDone (cx, dscript, debugSource);
     for (int i = 0; i != dscript.FunctionCount; ++i) {
         NotifyDebugger (cx, dscript.GetFunction (i), debugSource);
     }
 }