GetPositionDescriptionString() public method

public GetPositionDescriptionString ( int codepos ) : string
codepos int
return string
示例#1
0
 public virtual bool AddTrace(InterCodeObject context, int codepos)
 {
     int len = mTrace.Length;
     if (len >= MAX_TRACE_TEXT_LEN)
     {
         return false;
     }
     if (len != 0)
     {
         mTrace += " <-- ";
     }
     mTrace += context.GetPositionDescriptionString(codepos);
     return true;
 }
示例#2
0
 public static void ReportExceptionSource(string msg, InterCodeObject context, int
     codepos)
 {
     if (TJS.EnableDebugMode)
     {
         TJS.OutputExceptionToConsole(msg + " at " + context.GetPositionDescriptionString(
             codepos));
     }
 }