private static void displayAndWriteErrorsToGrammarResult(IEnumerable <Diagnostic> diagnostics, params string[] files) { string result = ParserUtils.DiagnosticsToString(diagnostics, false); Console.WriteLine(result); AppendTextToFiles((result + "\n"), files); }
private static void displayAndWriteErrorsToGrammarResult(string resultFile, IEnumerable <Diagnostic> diagnostics) { string result = ParserUtils.DiagnosticsToString(diagnostics, false); Console.WriteLine(result); File.AppendAllText(resultFile, (result + "\n")); }