Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 7
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>
 protected void Warning(MessageCode message, SourceSpan span, params object[] parameters)
 {
     ParsingResult.Warning(message, span, parameters);
 }
Ejemplo n.º 8
0
 /// <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);
 }
Ejemplo n.º 9
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>
 protected void Error(MessageCode message, SourceSpan span, params object[] parameters)
 {
     ParsingResult.Error(message, span, parameters);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }