public void Add(CompilerWarning error)
 {
     if (null == error)
     {
         throw new ArgumentNullException("error");
     }
     InnerList.Add(error);
 }
 public CompilerWarningEventArgs(CompilerWarning warning)
 {
     _warning = warning;
 }
Example #3
0
 private void EmitWarning(CompilerWarning warning)
 {
     My<CompilerWarningCollection>.Instance.Add(warning);
 }
Example #4
0
 public void MapParsingMessage(CompilerWarning warning)
 {
     MapParsingMessage(warning.LexicalInfo);
 }
Example #5
0
 public void MapMessage(CompilerWarning warning)
 {
     messages.Add(new CompilerMessage(warning.LexicalInfo, warning.Code, warning.Message, TaskErrorCategory.Warning));
 }
Example #6
0
 public void MapMessage(CompilerWarning warning)
 {
     var message = warning.Message;
     if (message.StartsWith("WARNING: "))
         message = message.Substring("WARNING: ".Length);
     messages.Add(new CompilerMessage(warning.LexicalInfo, warning.Code, message, TaskErrorCategory.Warning));
 }