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