Ejemplo n.º 1
0
 /// <summary>
 /// Formats the given message to include detailed file location information.
 /// </summary>
 public override string FormatErrorMessage(string message) =>
 string.Format(
     ErrorMessages.LocationFileMessage,
     message,
     FileName,
     StartLine.ToString(),
     EndLine.ToString());
Ejemplo n.º 2
0
 public override string ToString()
 {
     if (IsHidden)
     {
         return("IL" + IlOffset.ToString("X4") + " (hidden)");
     }
     return("IL" + IlOffset.ToString("X4") + " (" +
            StartLine.ToString() + "-" + EndLine.ToString() + ") (" +
            StartCol.ToString() + "-" + EndCol.ToString() + ")");
 }