Esempio n. 1
0
 /// <summary>
 /// Summarize this fragment for the debugger
 /// </summary>
 /// <returns>String representation of this fragment for the debugger</returns>
 public override string ToString()
 {
     if (Location != null)
     {
         return(Location.ToString());
     }
     else if (MarkupMax == 0)
     {
         return(File.ToString());
     }
     else
     {
         return(String.Format("{0}: {1}-{2}", File.ToString(), File.Markup[MarkupMin].Location.LineIdx + 1, File.Markup[MarkupMax - 1].EndLocation.LineIdx + 1));
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Convert the object to a string for debugging purposes
 /// </summary>
 /// <returns>String representation of the object</returns>
 public override string ToString()
 {
     return(InputFile.ToString());
 }