Example #1
0
 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);
 }
Example #2
0
        internal void AddTrace(Script script, int line_number)
        {
            var traceline = new TraceLine(script, line_number);

            _stack_trace.Add(traceline);
        }
Example #3
0
 internal void AddTrace(TraceLine traceLine)
 {
     _stack_trace.Add(traceLine);
 }
Example #4
0
 internal void AddTrace(Script script, int line_number) {
     var traceline = new TraceLine(script, line_number);
     _stack_trace.Add(traceline);
 }
Example #5
0
 internal void AddTrace(TraceLine traceLine) {
     _stack_trace.Add(traceLine);
 }