Esempio n. 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);
			}
		}
Esempio n. 2
0
		private static void NotifyDebugger_r(Context cx, DebuggableScript dscript, string debugSource)
		{
			cx.debugger.HandleCompilationDone(cx, dscript, debugSource);
			for (int i = 0; i != dscript.GetFunctionCount(); ++i)
			{
				NotifyDebugger_r(cx, dscript.GetFunction(i), debugSource);
			}
		}