Fixes cloning of a variable declarator.
[mono.git] / mcs / mcs / context.cs
index 3bea9029a61354f5f9079a7fbc30449b9441b94f..33a003430be97e60c3f95d40b2046f0789e54ece 100644 (file)
@@ -553,12 +553,21 @@ namespace Mono.CSharp
                readonly Report report;
                readonly ReflectionMetaImporter meta_importer;
                readonly PredefinedAttributes attributes;
+               readonly GlobalRootNamespace root;
 
                public CompilerContext (ReflectionMetaImporter metaImporter, Report report)
                {
                        this.meta_importer = metaImporter;
-                       this.attributes = new PredefinedAttributes ();
                        this.report = report;
+
+                       this.attributes = new PredefinedAttributes ();
+                       this.root = new GlobalRootNamespace ();
+               }
+
+               public GlobalRootNamespace GlobalRootNamespace {
+                       get {
+                               return root;
+                       }
                }
 
                public bool IsRuntimeBinder { get; set; }