private static List <CompileError> GetCompilerErrors(ParserMessageList syntaxErrors) { if (syntaxErrors.IsEmpty()) { return(null); } return(syntaxErrors.Select(e => new CompileError() { Text = TranslateMessage(e) }).ToList()); }
}//method public void CopyMessages(ParserMessageList others, SourceLocation baseLocation, string messagePrefix) { foreach(var other in others) this.ParserMessages.Add(new ParserMessage(other.Level, baseLocation + other.Location, messagePrefix + other.Message, other.ParserState)); }//
private static List<CompileError> GetCompilerErrors(ParserMessageList syntaxErrors) { if (syntaxErrors.IsEmpty()) { return null; } return syntaxErrors.Select(e => new CompileError() { Text = TranslateMessage(e) }).ToList(); }