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 }); }
public static Message Warning(string text, PointLocation loc, string src = null) { return(Create(MessageType.Warning, text, loc, src)); }
public static Message Error(string text, PointLocation loc, string src = null) { return(Create(MessageType.Error, text, loc, src)); }