Esempio n. 1
0
        internal static void Dump(TextWriter /*!*/ output, string path)
        {
            try
            {
                CompilationEnd();
                output.WriteLine("Compiled in {0}:{1:00}.{2:000}.", duration.Minutes, duration.Seconds, duration.Milliseconds);

                AST.DumpBasic(output);

                using (StreamWriter f = File.CreateText(Path.Combine(path, "LibraryCalls.csv")))
                {
                    AST.DumpLibraryFunctionCalls(f);
                }

                using (StreamWriter f = File.CreateText(Path.Combine(path, "UnknownCalls.csv")))
                {
                    AST.DumpUnknownFunctionCalls(f);
                }

                using (StreamWriter f = File.CreateText(Path.Combine(path, "EmittedNodes.csv")))
                {
                    AST.DumpNodes(f);
                }
            }
            catch (Exception ex)
            {
                // Log error to stderr and move on.
                Console.Error.WriteLine("Error: " + ex);
            }
        }
Esempio n. 2
0
        internal static void Dump(TextWriter /*!*/ output, string path)
        {
            Statistics.CompilationEnd();
            output.WriteLine(string.Format
                                 ("Compiled in {0}:{1:00}.{2:000}.", duration.Minutes, duration.Seconds, duration.Milliseconds));

            AST.DumpBasic(output);

            using (StreamWriter f = File.CreateText(Path.Combine(path, "LibraryCalls.csv")))
                AST.DumpLibraryFunctionCalls(f);

            using (StreamWriter f = File.CreateText(Path.Combine(path, "UnknownCalls.csv")))
                AST.DumpUnknownFunctionCalls(f);

            using (StreamWriter f = File.CreateText(Path.Combine(path, "EmittedNodes.csv")))
                AST.DumpNodes(f);
        }