コード例 #1
0
 private static Message Create(MessageType type, string text, PointLocation loc, string src = null, string fileName = null)
 {
     return(new Message()
     {
         Location = loc,
         Text = text,
         Source = src,
         FileName = fileName,
         Type = type
     });
 }
コード例 #2
0
 public static Message Warning(string text, PointLocation loc, string src = null)
 {
     return(Create(MessageType.Warning, text, loc, src));
 }
コード例 #3
0
 public static Message Error(string text, PointLocation loc, string src = null)
 {
     return(Create(MessageType.Error, text, loc, src));
 }