Beispiel #1
0
        public void AddMessage(EMReadingMessage message, TransformationData data)
        {
            if (message.MessageClass == MessageClass.Error || message.MessageClass == MessageClass.Warning)
            {
                HadReadingProblem = true;

                ErrorId = data.ErrorList.Count;

                data.ErrorList.Add(Markdown.GenerateError(
                                       message.Message, message.MessageClass, Origin.Text, ErrorId, data));
            }

            Messages.Add(message);
        }
Beispiel #2
0
 private EMErrorElement(EMDocument doc, EMElementOrigin origin, EMElement parent, EMReadingMessage error, TransformationData data)
     : base(doc, origin, parent)
 {
     AddMessage(error, data);
 }
 private EMErrorElement(EMDocument doc, EMElementOrigin origin, EMElement parent, EMReadingMessage error, TransformationData data)
     : base(doc, origin, parent)
 {
     AddMessage(error, data);
 }