private TraceLine GetTraceLineAt(int[] lineNumber) { if (this.ChildenScripts != null) { foreach (var child_script in this.ChildenScripts) { TraceLine traceline = child_script.GetTraceLineAt(lineNumber); if (traceline != null) { return(traceline); } } } if (lineNumber[0] <= this.LineCount) { return(new TraceLine(this, lineNumber[0])); } lineNumber[0] -= this.LineCount + 1; return(null); }
internal void AddTrace(Script script, int line_number) { var traceline = new TraceLine(script, line_number); _stack_trace.Add(traceline); }
internal void AddTrace(TraceLine traceLine) { _stack_trace.Add(traceLine); }