Add initial reflection dependant code
[mono.git] / mcs / mcs / context.cs
index a3221526e58f14432759e264dd3aa1f30765d7a6..bdbbf885a0b736422ad0f199ae193e86600be807 100644 (file)
@@ -545,35 +545,22 @@ namespace Mono.CSharp
        public class CompilerContext
        {
                readonly Report report;
-               readonly ReflectionMetaImporter meta_importer;
                readonly PredefinedAttributes attributes;
-               readonly GlobalRootNamespace root;
 
-               public CompilerContext (ReflectionMetaImporter metaImporter, Report report)
+               public CompilerContext (Report report)
                {
-                       this.meta_importer = metaImporter;
                        this.report = report;
 
                        this.attributes = new PredefinedAttributes ();
-                       this.root = new GlobalRootNamespace ();
                }
 
                #region Properties
 
-               public GlobalRootNamespace GlobalRootNamespace {
-                       get {
-                               return root;
-                       }
-               }
+               // TODO: Obsolete, it has to go
+               public RootNamespace GlobalRootNamespace { get; set; }
 
                public bool IsRuntimeBinder { get; set; }
 
-               public ReflectionMetaImporter MetaImporter {
-                       get {
-                               return meta_importer;
-                       }
-               }
-
                public PredefinedAttributes PredefinedAttributes {
                        get {
                                return attributes;