Beispiel #1
0
        public ScopeAnalysis(IMetadataHost host, IAssembly assembly, ISourceLocationProvider sourceLocationProvider, IEnumerable <IAssembly> refAssemblies, IEnumerable <string> ips)
        {
            this.mhost = host;
            this.myScopeRuntimeLoader   = new RuntimeLoader.RuntimeLoader(host);
            this.assembly               = assembly;
            this.refAssemblies          = refAssemblies;
            this.sourceLocationProvider = sourceLocationProvider;
            interestingProcessors       = ips;

            this.LoadRuntimeTypes(assembly);
        }
Beispiel #2
0
        public MyLoader(MetadataReaderHost host, string directory)
        {
            this.cciHost              = host;
            this.myRuntimeLoader      = new RuntimeLoader.RuntimeLoader(host);
            sourceProviderForAssembly = new Dictionary <IAssembly, ISourceLocationProvider>();
            if (PlatformTypes == null)
            {
                PlatformTypes = host.PlatformType;
            }

            this.failedAssemblies = new HashSet <IAssemblyReference>();
            //LoadCoreAssembly();

            LoadRuntimeTypes(directory);
        }