14 references to Module
Microsoft.CodeAnalysis (1)
MetadataReference\ModuleMetadata.cs (1)
385
return new MetadataImageReference(this, MetadataReferenceProperties.
Module
, documentation, filePath, display);
Microsoft.CodeAnalysis.CSharp (1)
CommandLine\CSharpCommandLineParser.cs (1)
710
metadataReferences.AddRange(ParseSeparatedPaths(value).Select(path => new CommandLineReference(path, MetadataReferenceProperties.
Module
)));
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
2664
Assert.Equal(MetadataReferenceProperties.
Module
, parsedArgs.MetadataReferences[1].Properties);
2680
Assert.Equal(MetadataReferenceProperties.
Module
, parsedArgs.MetadataReferences[3].Properties);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\CompilationAPITests.cs (2)
3101
var moduleReference = MetadataReference.CreateFromStream(moduleStream, MetadataReferenceProperties.
Module
);
3120
var moduleReference = MetadataReference.CreateFromStream(moduleStream, MetadataReferenceProperties.
Module
);
Microsoft.CodeAnalysis.UnitTests (8)
MetadataReferences\MetadataReferencePropertiesTests.cs (4)
35
Assert.Equal(MetadataReferenceProperties.
Module
, new MetadataReferenceProperties(MetadataImageKind.Module, ImmutableArray<string>.Empty, false));
48
Assert.Throws<ArgumentException>(() => MetadataReferenceProperties.
Module
.WithAliases(ImmutableArray.Create("blah")));
49
Assert.Throws<ArgumentException>(() => MetadataReferenceProperties.
Module
.WithAliases(new[] { "blah" }));
50
Assert.Throws<ArgumentException>(() => MetadataReferenceProperties.
Module
.WithEmbedInteropTypes(true));
MetadataReferences\MetadataReferenceTests.cs (4)
81
? MetadataReference.CreateFromImage(peImage.AsImmutable(), MetadataReferenceProperties.
Module
)
82
: MetadataReference.CreateFromImage(peImage.AsEnumerable(), MetadataReferenceProperties.
Module
);
147
MetadataReferenceProperties.
Module
);
187
var r = MetadataReference.CreateFromFile(file.Path, MetadataReferenceProperties.
Module
);