예제 #1
0
        private static void displayAndWriteErrorsToGrammarResult(IEnumerable <Diagnostic> diagnostics, params string[] files)
        {
            string result = ParserUtils.DiagnosticsToString(diagnostics, false);

            Console.WriteLine(result);
            AppendTextToFiles((result + "\n"), files);
        }
예제 #2
0
        private static void displayAndWriteErrorsToGrammarResult(string resultFile, IEnumerable <Diagnostic> diagnostics)
        {
            string result = ParserUtils.DiagnosticsToString(diagnostics, false);

            Console.WriteLine(result);
            File.AppendAllText(resultFile, (result + "\n"));
        }