59 instantiations of ResourceDescription
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (19)
Emit\CompilationEmitTests.cs (1)
1305var hash_resources = new[] {new ResourceDescription("hash_resource", "snKey.snk",
Emit\ResourceTests.cs (18)
213new ResourceDescription("r2", "file", () => { throw new Exception("bad stuff"); }, false) 224new ResourceDescription("r2", "file", () => null, false) 243new ResourceDescription("A", "x.goo", dataProvider, true), 244new ResourceDescription("A", "y.goo", dataProvider, true) 263new ResourceDescription("A", dataProvider, true), 296new ResourceDescription("A", "x.goo", dataProvider, true), 297new ResourceDescription("B", "x.goo", dataProvider, true) 316new ResourceDescription("A", dataProvider, true), 343new ResourceDescription("A", "x.goo", dataProvider, true), 344new ResourceDescription("A", "x.goo", dataProvider, true) 357new ResourceDescription("A", "x.goo", dataProvider, true), 358new ResourceDescription("B", "x.goo", dataProvider, true), 359new ResourceDescription("B", "y.goo", dataProvider, true) 372new ResourceDescription("A", "goo.dll", dataProvider, true), 385new ResourceDescription("A", "netmodule1.netmodule", dataProvider, true), 777new ResourceDescription(r2Name, "nonExistent", () => { throw new NotSupportedException("error in data provider"); }, false) 804new ResourceDescription(r2Name, () => null, true), 903new ResourceDescription("res", () => stream, false)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Attributes\AttributeTests_Assembly.cs (1)
580var hash_resources = new[] {new ResourceDescription("hash_resource", "snKey.snk",
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\NameLengthTests.cs (6)
571new ResourceDescription("name1", "path1", dataProvider, false), //fine 572new ResourceDescription(s_longSymbolName, "path2", dataProvider, false), //fine 573new ResourceDescription("name2", s_longPathName, dataProvider, false), //fine 574new ResourceDescription(s_longSymbolName + 1, "path3", dataProvider, false), //name error 575new ResourceDescription("name3", s_longPathName + 2, dataProvider, false), //path error 576new ResourceDescription(s_longSymbolName + 3, s_longPathName + 4, dataProvider, false), //name and path errors
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
280var description = new ResourceDescription(name, dataProvider: () => new MemoryStream(content), isPublic);
Microsoft.CodeAnalysis.UnitTests (23)
ResourceDescriptionTests.cs (23)
22new ResourceDescription("res", "file", data, isPublic: true); 23new ResourceDescription("re/s", "file", data, isPublic: true); 24new ResourceDescription("re\\s", "file", data, isPublic: true); 25new ResourceDescription("re\\s", "fil*<>|e", data, isPublic: true); 28Assert.Throws<ArgumentNullException>(() => new ResourceDescription(null, "file", data, isPublic: true)); 29Assert.Throws<ArgumentNullException>(() => new ResourceDescription("res", null, data, isPublic: true)); 30Assert.Throws<ArgumentNullException>(() => new ResourceDescription("res", "file", null, isPublic: true)); 31Assert.Throws<ArgumentNullException>(() => new ResourceDescription(null, data, isPublic: true)); 32Assert.Throws<ArgumentNullException>(() => new ResourceDescription("res", null, isPublic: true)); 35Assert.Throws<ArgumentException>(() => new ResourceDescription("", "file", data, isPublic: true)); 36Assert.Throws<ArgumentException>(() => new ResourceDescription("res", "", data, isPublic: true)); 37Assert.Throws<ArgumentException>(() => new ResourceDescription("res", "", data, isPublic: true)); 38Assert.Throws<ArgumentException>(() => new ResourceDescription("", "file", data, isPublic: true)); 41Assert.Throws<ArgumentException>(() => new ResourceDescription("x", "x/x", data, isPublic: true)); 42Assert.Throws<ArgumentException>(() => new ResourceDescription("x", "x\\x", data, isPublic: true)); 43Assert.Throws<ArgumentException>(() => new ResourceDescription("x", "x:x", data, isPublic: true)); 44Assert.Throws<ArgumentException>(() => new ResourceDescription("x", "\0", data, isPublic: true)); 45Assert.Throws<ArgumentException>(() => new ResourceDescription("", "x", data, isPublic: true)); 46Assert.Throws<ArgumentException>(() => new ResourceDescription("xxx\0xxxx", "", data, isPublic: true)); 47Assert.Throws<ArgumentException>(() => new ResourceDescription("xxx\uD800asdas", "", data, isPublic: true)); 48Assert.Throws<ArgumentException>(() => new ResourceDescription("xxx", "xxx\uD800asdas", data, isPublic: true)); 51new ResourceDescription(new string('e', 1024), data, true); 52new ResourceDescription("x", new string('e', 260), data, true);
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (3)
Attributes\AssemblyAttributes.vb (1)
769Dim hash_resources = {New ResourceDescription("hash_resource", "snKey.snk",
Emit\CompilationEmitTests.vb (1)
1155{New ResourceDescription("hash_resource", "snKey.snk", Function() New MemoryStream(TestResources.General.snKey, writable:=False), True)}
Emit\ResourceTests.vb (1)
195manifestResources:={New ResourceDescription("r2", "file", Function() Nothing, False)})
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (6)
Semantics\NameLengthTests.vb (6)
528New ResourceDescription("name1", "path1", dataProvider, False), 'fine 529New ResourceDescription(s_longSymbolName, "path2", dataProvider, False), 'fine 530New ResourceDescription("name2", s_longPathName, dataProvider, False), 'fine 531New ResourceDescription(s_longSymbolName & 1, "path3", dataProvider, False), 'name error 532New ResourceDescription("name3", s_longPathName & 2, dataProvider, False), 'path error 533New ResourceDescription(s_longSymbolName & 3, s_longPathName & 4, dataProvider, False) 'name And path errors
104 references to ResourceDescription
Microsoft.CodeAnalysis (19)
CommandLine\CommandLineArguments.cs (1)
244public ImmutableArray<ResourceDescription> ManifestResources { get; internal set; }
Compilation\Compilation.cs (11)
2126IEnumerable<ResourceDescription>? manifestResources, 2141foreach (var resource in manifestResources) 2475IEnumerable<ResourceDescription>? manifestResources, 2679IEnumerable<ResourceDescription>? manifestResources, 2703IEnumerable<ResourceDescription> manifestResources, 2727IEnumerable<ResourceDescription>? manifestResources, 2788IEnumerable<ResourceDescription>? manifestResources = null, 2816IEnumerable<ResourceDescription>? manifestResources, 2934IEnumerable<ResourceDescription>? manifestResources, 3149IEnumerable<ResourceDescription>? manifestResources, 3166foreach (ResourceDescription res in manifestResources)
Emit\CommonPEModuleBuilder.cs (4)
26internal readonly IEnumerable<ResourceDescription> ManifestResources; 52IEnumerable<ResourceDescription> manifestResources, 516foreach (ResourceDescription r in ManifestResources) 606IEnumerable<ResourceDescription> manifestResources,
FileSystemExtensions.cs (1)
38IEnumerable<ResourceDescription>? manifestResources = null,
ResourceDescription.cs (2)
102private readonly ResourceDescription _resource; 104public ResourceHashProvider(ResourceDescription resource)
Microsoft.CodeAnalysis.CSharp (16)
CommandLine\CSharpCommandLineParser.cs (6)
100List<ResourceDescription> managedResources = new List<ResourceDescription>(); 745var embeddedResource = ParseResourceDescription(arg, valueMemory.Value, baseDirectory, diagnostics, embedded: true); 761var linkedResource = ParseResourceDescription(arg, valueMemory.Value, baseDirectory, diagnostics, embedded: false); 2018internal static ResourceDescription? ParseResourceDescription( 2026internal static ResourceDescription? ParseResourceDescription(
Compilation\CSharpCompilation.cs (2)
3402IEnumerable<ResourceDescription>? manifestResources, 3420manifestResources = SpecializedCollections.EmptyEnumerable<ResourceDescription>();
CSharpFileSystemExtensions.cs (1)
37IEnumerable<ResourceDescription>? manifestResources = null,
Emitter\EditAndContinue\EmitHelpers.cs (1)
39var manifestResources = SpecializedCollections.EmptyEnumerable<ResourceDescription>();
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (1)
52IEnumerable<ResourceDescription> manifestResources,
Emitter\Model\PEAssemblyBuilder.cs (3)
72IEnumerable<ResourceDescription> manifestResources, 137foreach (ResourceDescription resource in ManifestResources) 636IEnumerable<ResourceDescription> manifestResources)
Emitter\Model\PEModuleBuilder.cs (1)
82IEnumerable<ResourceDescription> manifestResources)
Emitter\Model\PENetModuleBuilder.cs (1)
22IEnumerable<ResourceDescription> manifestResources)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
919ResourceDescription desc = CSharpCommandLineParser.ParseResourceDescription("", @"\somepath\someFile.goo.bar", WorkingDirectory, diags, embedded: false); 1125ResourceDescription resourceDescription;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (5)
CodeGen\CodeGenTests.cs (1)
13280new ResourceDescription[0]);
Emit\CompilationEmitTests.cs (1)
2724OutputKind.DynamicallyLinkedLibrary, GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>());
Emit\EmitMetadataTests.cs (1)
1414GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>());
Emit\ResourceTests.cs (2)
775new ResourceDescription[] 802new ResourceDescription[]
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (9)
Symbols\Source\BaseClassTests.cs (1)
1575GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>());
Symbols\Source\MethodTests.cs (6)
1683GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>()); 1727GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>()); 1774GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>()); 1828GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>()); 1969GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>()); 2013GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>());
Symbols\Source\PropertyTests.cs (2)
2506GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>()); 2544GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>());
Microsoft.CodeAnalysis.CSharp.Test.Utilities (8)
CompilingTestBase.cs (1)
34manifestResources: Enumerable.Empty<ResourceDescription>());
CSharpTestBase.cs (7)
800IEnumerable<ResourceDescription> manifestResources = null, 836IEnumerable<ResourceDescription> manifestResources = null, 873IEnumerable<ResourceDescription> manifestResources = null, 914IEnumerable<ResourceDescription> manifestResources = null, 950IEnumerable<ResourceDescription> manifestResources = null, 986IEnumerable<ResourceDescription> manifestResources = null, 1022IEnumerable<ResourceDescription> manifestResources = null,
Microsoft.CodeAnalysis.Rebuild (2)
CompilationOptionsReader.cs (2)
259public unsafe ResourceDescription[]? GetManifestResources() 280var description = new ResourceDescription(name, dataProvider: () => new MemoryStream(content), isPublic);
Microsoft.CodeAnalysis.Test.Utilities (11)
CommonTestBase.cs (2)
76IEnumerable<ResourceDescription> manifestResources = null, 178IEnumerable<ResourceDescription> manifestResources,
Compilation\CompilationExtensions.cs (1)
59IEnumerable<ResourceDescription> manifestResources = null,
Compilation\IRuntimeEnvironment.cs (3)
195IEnumerable<ResourceDescription> manifestResources, 237IEnumerable<ResourceDescription> manifestResources, 394void Emit(Compilation mainCompilation, IEnumerable<ResourceDescription> manifestResources, EmitOptions emitOptions, bool usePdbForDebugging = false);
CompilationVerifier.cs (2)
262IEnumerable<ResourceDescription> manifestResources, 489private string Emit(IRuntimeEnvironment testEnvironment, IEnumerable<ResourceDescription> manifestResources, EmitOptions emitOptions)
Diagnostics\DiagnosticExtensions.cs (2)
363IEnumerable<ResourceDescription> manifestResources = null) 382public static TCompilation VerifyEmitDiagnostics<TCompilation>(this TCompilation c, IEnumerable<ResourceDescription> manifestResources, params DiagnosticDescription[] expected)
Platform\CoreClr\CoreCLRRuntimeEnvironment.cs (1)
38IEnumerable<ResourceDescription> manifestResources,
Microsoft.CodeAnalysis.VisualBasic (12)
CommandLine\VisualBasicCommandLineParser.vb (2)
118Dim managedResources = New List(Of ResourceDescription)() 1707Friend Overloads Shared Function ParseResourceDescription(name As String, resourceDescriptor As String, baseDirectory As String, diagnostics As IList(Of Diagnostic), embedded As Boolean) As ResourceDescription
Compilation\VisualBasicCompilation.vb (3)
2375manifestResources As IEnumerable(Of ResourceDescription), 2397manifestResources As IEnumerable(Of ResourceDescription), 2412manifestResources = SpecializedCollections.EmptyEnumerable(Of ResourceDescription)()
Emit\EditAndContinue\EmitHelpers.vb (1)
37Dim manifestResources = SpecializedCollections.EmptyEnumerable(Of ResourceDescription)()
Emit\EditAndContinue\PEDeltaAssemblyBuilder.vb (1)
51manifestResources As IEnumerable(Of ResourceDescription),
Emit\PEAssemblyBuilder.vb (2)
40manifestResources As IEnumerable(Of ResourceDescription), 177manifestResources As IEnumerable(Of ResourceDescription),
Emit\PEModuleBuilder.vb (1)
36manifestResources As IEnumerable(Of ResourceDescription))
Emit\PENetModuleBuilder.vb (1)
21manifestResources As IEnumerable(Of ResourceDescription))
VisualBasicFileSystemExtensions.vb (1)
35Optional manifestResources As IEnumerable(Of ResourceDescription) = Nothing,
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (2)
CommandLineTests.vb (2)
1163Dim desc As ResourceDescription 1340Dim resourceDescription As ResourceDescription
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (13)
Emit\CompilationEmitTests.vb (1)
3277Dim assemblyBuilder = New PEAssemblyBuilder(sourceAssembly, emitOptions, OutputKind.DynamicallyLinkedLibrary, GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable(Of ResourceDescription), Nothing)
Emit\ResourceTests.vb (12)
263Dim result As EmitResult = c1.Emit(output, manifestResources:=New ResourceDescription(0) _ 291Dim result As EmitResult = c1.Emit(output, manifestResources:=New ResourceDescription(0) _ 385Dim result As EmitResult = c1.Emit(output, manifestResources:=New ResourceDescription(1) _ 671Dim result As EmitResult = c1.Emit(output, manifestResources:=New ResourceDescription(1) _ 681result = c1.Emit(output, manifestResources:=New ResourceDescription(1) _ 708Dim result = c1.Emit(output, manifestResources:=New ResourceDescription(1) _ 717result = c1.Emit(output, manifestResources:=New ResourceDescription(0) _ 728result = c1.Emit(output, manifestResources:=New ResourceDescription(0) _ 754Dim result As EmitResult = c1.Emit(output, manifestResources:=New ResourceDescription(1) _ 763result = c1.Emit(output, manifestResources:=New ResourceDescription(1) _ 787Dim result As EmitResult = c1.Emit(output, manifestResources:=New ResourceDescription(1) _ 799result = c1.Emit(output, manifestResources:=New ResourceDescription(2) _
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (1)
EEAssemblyBuilder.vb (1)
40manifestResources:=SpecializedCollections.EmptyEnumerable(Of ResourceDescription)(),
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolsTests\Source\PropertyTests.vb (1)
8199Dim [module] = New PEAssemblyBuilder(DirectCast([class].ContainingAssembly, SourceAssemblySymbol), EmitOptions.Default, OutputKind.DynamicallyLinkedLibrary, GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable(Of ResourceDescription)())
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
BasicTestBase.vb (2)
65Optional manifestResources As IEnumerable(Of ResourceDescription) = Nothing, 99Optional manifestResources As IEnumerable(Of ResourceDescription) = Nothing,
System.Windows.Forms.Design.Tests (1)
System\Resources\Tools\CodeDomCompileHelper.cs (1)
40ResourceDescription[] description = resource is null