Example #1
0
 /// <summary>
 /// Adds the message.
 /// </summary>
 /// <param name="level">The type.</param>
 /// <param name="message">The message.</param>
 /// <param name="span">The span.</param>
 /// <param name="parameters">The parameters.</param>
 protected void AddMessage(ReportMessageLevel level, MessageCode message, SourceSpan span, params object[] parameters)
 {
     if (level == ReportMessageLevel.Error)
     {
         this.HasErrors = true;
     }
     this.Messages.Add(new ReportMessage(level, message.Code, string.Format(message.Text, parameters), span));
 }
Example #2
0
 /// <summary>
 /// Adds the message.
 /// </summary>
 /// <param name="level">The type.</param>
 /// <param name="message">The message.</param>
 /// <param name="span">The span.</param>
 protected void AddMessage(ReportMessageLevel level, MessageCode message, SourceSpan span)
 {
     if (level == ReportMessageLevel.Error)
     {
         this.HasErrors = true;
     }
     this.Messages.Add(new ReportMessage(level, message.Code, message.Text, span));
 }
Example #3
0
 /// <summary>
 /// Logs an Warning with the specified message.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <param name="span">The span.</param>
 /// <param name="parameters">The parameters.</param>
 public void Warning(MessageCode message, SourceSpan span, params object[] parameters)
 {
     this.AddMessage(ReportMessageLevel.Warning, message, span, parameters);
 }
Example #4
0
 /// <summary>
 /// Logs an Info with the specified message.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <param name="span">The span.</param>
 public void Info(MessageCode message, SourceSpan span)
 {
     this.AddMessage(ReportMessageLevel.Info, message, span);
 }
Example #5
0
 /// <summary>
 /// Logs an Warning with the specified message.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <param name="span">The span.</param>
 public void Warning(MessageCode message, SourceSpan span)
 {
     this.AddMessage(ReportMessageLevel.Warning, message, span);
 }
Example #6
0
 /// <summary>
 /// Logs an Warning with the specified message.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <param name="span">The span.</param>
 /// <param name="parameters">The parameters.</param>
 public void Warning(MessageCode message, SourceSpan span, params object[] parameters)
 {
     this.AddMessage(ReportMessageLevel.Warning, message, span, parameters);
 }
 /// <summary>
 /// Logs an Warning with the specified message.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <param name="span">The span.</param>
 /// <param name="parameters">The parameters.</param>
 protected void Warning(MessageCode message, SourceSpan span, params object[] parameters)
 {
     ParsingResult.Warning(message, span, parameters);
 }
 /// <summary>
 /// Logs an Error with the specified message.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <param name="span">The span.</param>
 protected void Error(MessageCode message, SourceSpan span)
 {
     ParsingResult.Error(message, span);
 }
 /// <summary>
 /// Logs an Error with the specified message.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <param name="span">The span.</param>
 /// <param name="parameters">The parameters.</param>
 protected void Error(MessageCode message, SourceSpan span, params object[] parameters)
 {
     ParsingResult.Error(message, span, parameters);
 }
Example #10
0
 /// <summary>
 /// Logs an Error with the specified message.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <param name="span">The span.</param>
 /// <param name="parameters">The parameters.</param>
 public void Error(MessageCode message, SourceSpan span, params object[] parameters)
 {
     this.AddMessage(ReportMessageLevel.Error, message, span, parameters);
 }
Example #11
0
 /// <summary>
 /// Logs an Info with the specified message.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <param name="span">The span.</param>
 public void Info(MessageCode message, SourceSpan span)
 {
     this.AddMessage(ReportMessageLevel.Info, message, span);
 }
Example #12
0
 /// <summary>
 /// Logs an Error with the specified message.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <param name="span">The span.</param>
 public void Error(MessageCode message, SourceSpan span)
 {
     this.AddMessage(ReportMessageLevel.Error, message, span);
 }
Example #13
0
 /// <summary>
 /// Adds the message.
 /// </summary>
 /// <param name="level">The type.</param>
 /// <param name="message">The message.</param>
 /// <param name="span">The span.</param>
 /// <param name="parameters">The parameters.</param>
 protected void AddMessage(ReportMessageLevel level, MessageCode message, SourceSpan span, params object[] parameters)
 {
     if (level == ReportMessageLevel.Error) this.HasErrors = true;
     this.Messages.Add(new ReportMessage(level, message.Code, string.Format(message.Text, parameters), span));
 }
Example #14
0
 /// <summary>
 /// Adds the message.
 /// </summary>
 /// <param name="level">The type.</param>
 /// <param name="message">The message.</param>
 /// <param name="span">The span.</param>
 protected void AddMessage(ReportMessageLevel level, MessageCode message, SourceSpan span)
 {
     if (level == ReportMessageLevel.Error) this.HasErrors = true;
     this.Messages.Add(new ReportMessage(level, message.Code, message.Text, span));
 }
Example #15
0
 /// <summary>
 /// Logs an Error with the specified message.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <param name="span">The span.</param>
 public void Error(MessageCode message, SourceSpan span)
 {
     this.AddMessage(ReportMessageLevel.Error, message, span);
 }
Example #16
0
 /// <summary>
 /// Logs an Warning with the specified message.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <param name="span">The span.</param>
 protected void Warning(MessageCode message, SourceSpan span)
 {
     ParsingResult.Warning(message, span);
 }
Example #17
0
 /// <summary>
 /// Logs an Error with the specified message.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <param name="span">The span.</param>
 /// <param name="parameters">The parameters.</param>
 public void Error(MessageCode message, SourceSpan span, params object[] parameters)
 {
     this.AddMessage(ReportMessageLevel.Error, message, span, parameters);
 }
Example #18
0
 /// <summary>
 /// Logs an Warning with the specified message.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <param name="span">The span.</param>
 public void Warning(MessageCode message, SourceSpan span)
 {
     this.AddMessage(ReportMessageLevel.Warning, message, span);
 }