7 instantiations of ModuleData
Microsoft.CodeAnalysis.Test.Utilities (4)
Compilation\IRuntimeEnvironment.cs (2)
134moduleData = new ModuleData(module.Name, 215var moduleData = new ModuleData(identity,
Platform\Desktop\DesktopRuntimeEnvironment.cs (1)
221_emitData.MainModule = new ModuleData(
Platform\Desktop\RuntimeModuleData.cs (1)
71Data = new ModuleData(id.Id, kind, image, pdb, inMemoryModule, isCorLib);
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (3)
Attributes\AssemblyAttributes.vb (3)
584dependencies:={New ModuleData(en_usRef.Compilation.Assembly.Identity, 617dependencies:={New ModuleData(en_UKRef.Compilation.Assembly.Identity, 621New ModuleData(neutralRef.Compilation.Assembly.Identity,
67 references to ModuleData
Microsoft.CodeAnalysis.CSharp.Test.Utilities (7)
CSharpTestBase.cs (7)
801IEnumerable<ModuleData> dependencies = null, 837IEnumerable<ModuleData> dependencies = null, 874IEnumerable<ModuleData> dependencies = null, 915IEnumerable<ModuleData> dependencies = null, 951IEnumerable<ModuleData> dependencies = null, 987IEnumerable<ModuleData> dependencies = null, 1023IEnumerable<ModuleData> dependencies = null,
Microsoft.CodeAnalysis.Test.Utilities (51)
CommonTestBase.cs (2)
77IEnumerable<ModuleData> dependencies = null, 177IEnumerable<ModuleData> dependencies,
Compilation\IRuntimeEnvironment.cs (9)
29internal static IRuntimeEnvironment Create(IEnumerable<ModuleData> additionalDependencies = null) 93internal static void EmitReferences(Compilation compilation, HashSet<string> fullNameSet, List<ModuleData> dependencies, AssemblyIdentity corLibIdentity) 121ModuleData moduleData; 196List<ModuleData> dependencies, 215var moduleData = new ModuleData(identity, 295public static string DumpAssemblyData(IEnumerable<ModuleData> modules, out string dumpDirectory) 300foreach (var module in modules) 389IRuntimeEnvironment Create(IEnumerable<ModuleData> additionalDependencies); 400IList<ModuleData> GetAllModuleData();
CompilationVerifier.cs (9)
35private readonly IEnumerable<ModuleData> _dependencies; 38private IList<ModuleData> _allModuleData; 48IEnumerable<ModuleData> dependencies = null) 98IList<ModuleData> moduleDatas = testEnvironment.GetAllModuleData(); 99var mainModule = moduleDatas.Single(md => md.FullName == mainModuleFullName); 231IList<ModuleData> moduleData = testEnvironment.GetAllModuleData(); 232var mainModule = moduleData.Single(md => md.FullName == mainModuleFullName); 341foreach (var module in _allModuleData) 358var mscorlibModule = _allModuleData.SingleOrDefault(m => m.IsCorLib);
Platform\Desktop\AppDomainAssemblyCache.cs (1)
70internal Assembly GetOrLoad(ModuleData moduleData, bool reflectionOnly)
Platform\Desktop\DesktopRuntimeEnvironment.cs (9)
76internal List<ModuleData> AllModuleData; 79internal ModuleData MainModule; 100private readonly IEnumerable<ModuleData> _additionalDependencies; 102public DesktopRuntimeEnvironment(IEnumerable<ModuleData> additionalDependencies = null) 107private RuntimeData CreateAndInitializeRuntimeData(IEnumerable<ModuleData> compilationDependencies, ModuleDataId mainModuleId) 135private static RuntimeData GetOrCreateRuntimeData(IEnumerable<ModuleData> modules) 146private static RuntimeData TryGetCachedRuntimeData(IEnumerable<ModuleData> modules) 209var dependencies = new List<ModuleData>(); 303public IList<ModuleData> GetAllModuleData()
Platform\Desktop\DesktopRuntimeEnvironmentFactory.cs (1)
15public IRuntimeEnvironment Create(IEnumerable<ModuleData> additionalDependencies)
Platform\Desktop\RuntimeAssemblyManager.cs (6)
31internal ModuleData ModuleData { get; } 36internal AssemblyData(ModuleData moduleData) 68internal IEnumerable<ModuleData> ModuleDatas => _fullNameToAssemblyDataMap.Values.Where(x => x.Kind == Kind.ModuleData).Select(x => x.ModuleData); 159/// Add this to the set of <see cref="ModuleData"/> that is managed by this instance. It is okay to 165foreach (var module in modules.Select(x => x.Data)) 433var module = assemblyData.ModuleData;
Platform\Desktop\RuntimeModuleData.cs (14)
56public ModuleData Data { get; } 58public RuntimeModuleData(ModuleData data) 65var id = (RuntimeModuleDataId)info.GetValue(nameof(ModuleData.Id), typeof(RuntimeModuleDataId)); 66var kind = (OutputKind)info.GetInt32(nameof(ModuleData.Kind)); 67var image = info.GetByteArray(nameof(ModuleData.Image)); 68var pdb = info.GetByteArray(nameof(ModuleData.Pdb)); 69var inMemoryModule = info.GetBoolean(nameof(ModuleData.InMemoryModule)); 70var isCorLib = info.GetBoolean(nameof(ModuleData.IsCorLib)); 76info.AddValue(nameof(ModuleData.Id), new RuntimeModuleDataId(Data.Id)); 77info.AddValue(nameof(ModuleData.Kind), (int)Data.Kind); 78info.AddByteArray(nameof(ModuleData.Image), Data.Image); 79info.AddByteArray(nameof(ModuleData.Pdb), Data.Pdb); 80info.AddValue(nameof(ModuleData.InMemoryModule), Data.InMemoryModule); 81info.AddValue(nameof(ModuleData.IsCorLib), Data.IsCorLib);
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (9)
BasicTestBase.vb (9)
34Optional dependencies As IEnumerable(Of ModuleData) = Nothing, 66Optional dependencies As IEnumerable(Of ModuleData) = Nothing, 100Optional dependencies As IEnumerable(Of ModuleData) = Nothing, 131Optional dependencies As IEnumerable(Of ModuleData) = Nothing, 171Optional dependencies As IEnumerable(Of ModuleData) = Nothing, 213Optional dependencies As IEnumerable(Of ModuleData) = Nothing, 246Optional dependencies As IEnumerable(Of ModuleData) = Nothing, 276Optional dependencies As IEnumerable(Of ModuleData) = Nothing, 308Optional dependencies As IEnumerable(Of ModuleData) = Nothing,