public void Write(ProtoCore.OutputMessage message) { if (null == message) { return; } if (string.IsNullOrEmpty(message.FilePath)) { // Type: Message string formatWithoutFile = "{0}: {1}"; TextStream.WriteLine(string.Format(formatWithoutFile, message.Type.ToString(), message.Message)); } else { // Type: Message (File - Line, Column) string formatWithFile = "{0}: {1} ({2} - line: {3}, col: {4})"; TextStream.WriteLine(string.Format(formatWithFile, message.Type.ToString(), message.Message, message.FilePath, message.Line, message.Column)); } if (message.Type == ProtoCore.OutputMessage.MessageType.Warning) { message.Continue = true; } }