예제 #1
0
 private void CopyMessages(LogMessageList parserMessages, LogMessageList messages, SourceLocation baseLocation, string v)
 {
     foreach (var other in parserMessages)
     {
         messages.Add(new LogMessage(other.Level, baseLocation + other.Location, v + other.Message, other.ParserState));
     }
 }
예제 #2
0
 private void CopyMessages(LogMessageList fromList, LogMessageList toList, SourceLocation baseLocation, string messagePrefix)
 {
     foreach (var other in fromList)
     {
         toList.Add(new LogMessage(other.Level, baseLocation + other.Location, messagePrefix + other.Message, other.ParserState));
     }
 }//
예제 #3
0
 public void AddMessage(ErrorLevel level, SourceLocation location, string message, params object[] args)
 {
     if (args != null && args.Length > 0)
     {
         message = string.Format(message, args);
     }
     Messages.Add(new LogMessage(level, location, message, null));
 }