2008-07-07 Marek Safar <marek.safar@gmail.com>
[mono.git] / mcs / mcs / driver.cs
index 98c339a875d4f7ddce4510bc832060062c6c7baf..7b5d86680eb3160bf5bce1f1471f8b004743b6d4 100644 (file)
@@ -153,7 +153,7 @@ namespace Mono.CSharp
                                (int) span.TotalSeconds, span.Milliseconds, msg);
                }              
               
-               void tokenize_file (SourceFile file)
+               void tokenize_file (CompilationUnit file)
                {
                        Stream input;
 
@@ -180,7 +180,7 @@ namespace Mono.CSharp
                        return;
                }
 
-               void Parse (SourceFile file)
+               void Parse (CompilationUnit file)
                {
                        Stream input;
 
@@ -205,7 +205,7 @@ namespace Mono.CSharp
                        input.Close ();
                }       
                
-               void Parse (SeekableStreamReader reader, SourceFile file)
+               void Parse (SeekableStreamReader reader, CompilationUnit file)
                {
                        CSharpParser parser = new CSharpParser (reader, file, defines);
                        parser.ErrorOutput = Report.Stderr;
@@ -1791,7 +1791,7 @@ namespace Mono.CSharp
                        if (Report.Errors > 0)
                                return false;
                        
-                       CodeGen.Save (output_file);
+                       CodeGen.Save (output_file, want_debugging_support);
                        if (timestamps) {
                                ShowTime ("Saved output");
                                ShowTotalTime ("Total");
@@ -1971,8 +1971,9 @@ namespace Mono.CSharp
                        CodeGen.Reset ();
                        Attribute.Reset ();
                        AttributeTester.Reset ();
-                       CompilerGeneratedClass.Reset ();
                        AnonymousTypeClass.Reset ();
+                       AnonymousMethodBody.Reset ();
+                       AnonymousMethodStorey.Reset ();
                }
        }
 }