74 references to Module
Microsoft.CodeAnalysis (21)
MetadataReference\CompilationReference.cs (3)
24Debug.Assert(properties.Kind != MetadataImageKind.Module); 89if (properties.Kind == MetadataImageKind.Module) 99if (properties.Kind == MetadataImageKind.Module)
MetadataReference\MetadataImageKind.cs (1)
27return kind >= MetadataImageKind.Assembly && kind <= MetadataImageKind.Module;
MetadataReference\MetadataImageReference.cs (1)
60sb.Append(Properties.Kind == MetadataImageKind.Module ? "Module" : "Assembly");
MetadataReference\MetadataReference.cs (4)
127MetadataImageKind.Module => ModuleMetadata.CreateFromImage(peImage), 165MetadataImageKind.Module => ModuleMetadata.CreateFromImage(peImage), 208MetadataImageKind.Module => ModuleMetadata.CreateFromStream(peStream, PEStreamOptions.PrefetchEntireImage), 274if (properties.Kind == MetadataImageKind.Module)
MetadataReference\MetadataReferenceProperties.cs (5)
25public static MetadataReferenceProperties Module => new MetadataReferenceProperties(MetadataImageKind.Module); 45if (kind == MetadataImageKind.Module) 85/// <see cref="Kind"/> is <see cref="MetadataImageKind.Module"/>, as modules can't be aliased. 96/// <see cref="Kind"/> is <see cref="MetadataImageKind.Module"/>, as modules can't be aliased. 106/// <exception cref="ArgumentException"><see cref="Kind"/> is <see cref="MetadataImageKind.Module"/>, as interop types can't be embedded from modules.</exception>
MetadataReference\ModuleMetadata.cs (1)
354get { return MetadataImageKind.Module; }
PEWriter\MetadataWriter.PortablePdb.cs (1)
996MetadataImageKind.Module => 0,
ReferenceManager\CommonReferenceManager.Binding.cs (2)
423if (explicitReferenceMapping.IsSkipped || explicitReferenceMapping.Kind == MetadataImageKind.Module) 451if (!resolvedReference.IsSkipped && resolvedReference.Kind == MetadataImageKind.Module)
ReferenceManager\CommonReferenceManager.Resolution.cs (2)
370case MetadataImageKind.Module: 653referenceMap[referenceIndex] = new ResolvedReference(modules.Count, MetadataImageKind.Module);
ReferenceManager\CommonReferenceManager.State.cs (1)
486if (referenceMap[i].Kind == MetadataImageKind.Module)
Microsoft.CodeAnalysis.CSharp (1)
Compilation\CSharpCompilation.cs (1)
1201Debug.Assert(reference.Properties.Kind == MetadataImageKind.Module);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (4)
CommandLineTests.cs (4)
5866Assert.Equal(MetadataImageKind.Module, parsedArgs.MetadataReferences[0].Properties.Kind); 5872Assert.Equal(MetadataImageKind.Module, parsedArgs.MetadataReferences[0].Properties.Kind); 5874Assert.Equal(MetadataImageKind.Module, parsedArgs.MetadataReferences[1].Properties.Kind); 5876Assert.Equal(MetadataImageKind.Module, parsedArgs.MetadataReferences[2].Properties.Kind);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (7)
Compilation\CompilationAPITests.cs (1)
1293Assert.Equal(MetadataImageKind.Module, comp.ExternalReferences[2].Properties.Kind);
Compilation\ReferenceManagerTests.cs (2)
927var m1 = MetadataReference.CreateFromFile(p1, new MetadataReferenceProperties(MetadataImageKind.Module)); 928var m2 = MetadataReference.CreateFromFile(p2, new MetadataReferenceProperties(MetadataImageKind.Module));
Compilation\UsedAssembliesTests.cs (4)
105Assert.Empty(used.Where(r => r.Properties.Kind == MetadataImageKind.Module)); 107var comp2 = comp.RemoveAllReferences().AddReferences(used.Concat(comp.References.Where(r => r.Properties.Kind == MetadataImageKind.Module))); 329Assert.Empty(used.Where(r => r.Properties.Kind == MetadataImageKind.Module)); 344var comp2 = comp.RemoveAllReferences().AddReferences(used.Concat(comp.References.Where(r => r.Properties.Kind == MetadataImageKind.Module)));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestBase.cs (1)
1374var comp2 = comp.RemoveAllReferences().AddReferences(used.Concat(comp.References.Where(r => r.Properties.Kind == MetadataImageKind.Module)));
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
390: MetadataImageKind.Module;
Microsoft.CodeAnalysis.Scripting (1)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (1)
295if (kind is < MetadataImageKind.Assembly or > MetadataImageKind.Module)
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (1)
MetadataShadowCopyProviderTests.cs (1)
213var sc3a = _provider.GetMetadataShadowCopy(dll2.Path, MetadataImageKind.Module);
Microsoft.CodeAnalysis.Test.Utilities (1)
PDB\DeterministicBuildCompilationTestHelpers.cs (1)
134: MetadataImageKind.Module;
Microsoft.CodeAnalysis.UnitTests (20)
MetadataReferences\MetadataReferencePropertiesTests.cs (10)
30m = new MetadataReferenceProperties(MetadataImageKind.Module); 33Assert.Equal(MetadataImageKind.Module, m.Kind); 35Assert.Equal(MetadataReferenceProperties.Module, new MetadataReferenceProperties(MetadataImageKind.Module, ImmutableArray<string>.Empty, false)); 43Assert.Throws<ArgumentException>(() => new MetadataReferenceProperties(MetadataImageKind.Module, ImmutableArray.Create("blah"))); 44Assert.Throws<ArgumentException>(() => new MetadataReferenceProperties(MetadataImageKind.Module, embedInteropTypes: true)); 45Assert.Throws<ArgumentException>(() => new MetadataReferenceProperties(MetadataImageKind.Module, ImmutableArray.Create(""))); 46Assert.Throws<ArgumentException>(() => new MetadataReferenceProperties(MetadataImageKind.Module, ImmutableArray.Create("x\0x"))); 66var m = new MetadataReferenceProperties(MetadataImageKind.Module); 67Assert.Equal(m.WithAliases(default(ImmutableArray<string>)), new MetadataReferenceProperties(MetadataImageKind.Module, default(ImmutableArray<string>), embedInteropTypes: false)); 68Assert.Equal(m.WithEmbedInteropTypes(false), new MetadataReferenceProperties(MetadataImageKind.Module, default(ImmutableArray<string>), embedInteropTypes: false));
MetadataReferences\MetadataReferenceTests.cs (10)
87Assert.Equal(MetadataImageKind.Module, r.Properties.Kind); 152Assert.Equal(MetadataImageKind.Module, r.Properties.Kind); 191Assert.Equal(MetadataImageKind.Module, r.Properties.Kind); 195var props = new MetadataReferenceProperties(MetadataImageKind.Module); 262Assert.Equal(MetadataImageKind.Module, r.Properties.Kind); 274var r3 = r.WithProperties(new MetadataReferenceProperties(MetadataImageKind.Module)); 325var r5 = r.WithProperties(new MetadataReferenceProperties(MetadataImageKind.Module)); 326Assert.Equal(MetadataImageKind.Module, r5.Properties.Kind); 364Assert.Throws<ArgumentException>(() => r.WithProperties(new MetadataReferenceProperties(MetadataImageKind.Module))); 395Assert.Throws<ArgumentException>(() => r.WithProperties(new MetadataReferenceProperties(MetadataImageKind.Module)));
Microsoft.CodeAnalysis.VisualBasic (3)
CommandLine\VisualBasicCommandLineParser.vb (1)
678Function(path) New CommandLineReference(path, New MetadataReferenceProperties(MetadataImageKind.Module))))
CommandLine\VisualBasicCompiler.vb (1)
185If reference.Properties.Kind = MetadataImageKind.Module Then
Compilation\VisualBasicCompilation.vb (1)
1324Debug.Assert(reference.Properties.Kind = MetadataImageKind.Module)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (3)
CommandLineTests.vb (3)
4962Assert.Equal(MetadataImageKind.Module, parsedArgs.MetadataReferences(0).Properties.Kind) 4964Assert.Equal(MetadataImageKind.Module, parsedArgs.MetadataReferences(1).Properties.Kind) 4966Assert.Equal(MetadataImageKind.Module, parsedArgs.MetadataReferences(2).Properties.Kind)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Compilation\CompilationAPITests.vb (1)
1139Assert.Equal(MetadataImageKind.Module, comp.References(2).Properties.Kind)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (4)
UsedAssembliesTests.vb (4)
93Assert.Empty(used.Where(Function(r) r.Properties.Kind = MetadataImageKind.Module)) 95Dim comp2 = comp.RemoveAllReferences().AddReferences(used.Concat(comp.References.Where(Function(r) r.Properties.Kind = MetadataImageKind.Module))) 153Assert.Empty(used.Where(Function(r) r.Properties.Kind = MetadataImageKind.Module)) 166Dim comp2 = comp.RemoveAllReferences().AddReferences(used.Concat(comp.References.Where(Function(r) r.Properties.Kind = MetadataImageKind.Module)))
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
CompilationTestUtils.vb (1)
102Dim comp2 = comp.RemoveAllReferences().AddReferences(used.Concat(comp.References.Where(Function(r) r.Properties.Kind = MetadataImageKind.Module)))
Microsoft.CodeAnalysis.Workspaces (3)
Serialization\SerializerService_Reference.cs (3)
365writer.WriteInt32((int)MetadataImageKind.Module); 393Contract.ThrowIfFalse(metadataKind == MetadataImageKind.Module); 405Contract.ThrowIfFalse(metadataKind == MetadataImageKind.Module);
VBCSCompiler (1)
src\Compilers\Server\VBCSCompiler\MetadataCache.cs (1)
67if (properties.Kind == MetadataImageKind.Module)