示例#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));
 }