8 references to Create
Microsoft.CodeAnalysis (2)
MetadataReference\AssemblyMetadata.cs (2)
232
return
Create
(modules.AsImmutableOrNull());
245
return
Create
(ImmutableArray.CreateRange(modules));
Microsoft.CodeAnalysis.Scripting (1)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (1)
481
return AssemblyMetadata.
Create
(modules);
Microsoft.CodeAnalysis.UnitTests (4)
MetadataReferences\AssemblyMetadataTests.cs (4)
29
Assert.Throws<ArgumentException>(() => AssemblyMetadata.
Create
(default(ImmutableArray<ModuleMetadata>)));
30
Assert.Throws<ArgumentException>(() => AssemblyMetadata.
Create
(ImmutableArray.Create<ModuleMetadata>()));
38
Assert.Throws<ArgumentNullException>(() => AssemblyMetadata.
Create
(ImmutableArray.Create(m1, m2, null)));
39
Assert.Throws<ArgumentNullException>(() => AssemblyMetadata.
Create
(ImmutableArray.Create((ModuleMetadata)null)));
VBCSCompiler (1)
src\Compilers\Server\VBCSCompiler\MetadataCache.cs (1)
80
Metadata result = AssemblyMetadata.
Create
(allModules);