165 instantiations of EmitOptions
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
126var emitOptions = new EmitOptions(
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
126var emitOptions = new EmitOptions(
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
CSharpCompiler.cs (2)
140return new EmitOptions(); 158var emitOptions = new EmitOptions(debugInformationFormat: debugInformationFormat);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
RuntimeViewCompilerTest.cs (1)
787EmitOptionsSettable = new EmitOptions(debugInformationFormat: DebugInformationFormat.Embedded),
Microsoft.CodeAnalysis (18)
Emit\EmitOptions.cs (17)
20? new EmitOptions() 21: new EmitOptions().WithDebugInformationFormat(DebugInformationFormat.PortablePdb); 407return new EmitOptions(this) { EmitMetadataOnly = value }; 417return new EmitOptions(this) { PdbFilePath = path }; 427return new EmitOptions(this) { PdbChecksumAlgorithm = name }; 437return new EmitOptions(this) { OutputNameOverride = outputName }; 447return new EmitOptions(this) { DebugInformationFormat = format }; 461return new EmitOptions(this) { FileAlignment = value }; 471return new EmitOptions(this) { BaseAddress = value }; 481return new EmitOptions(this) { HighEntropyVirtualAddressSpace = value }; 491return new EmitOptions(this) { SubsystemVersion = subsystemVersion }; 501return new EmitOptions(this) { RuntimeMetadataVersion = version }; 511return new EmitOptions(this) { TolerateErrors = value }; 521return new EmitOptions(this) { IncludePrivateMembers = value }; 531return new EmitOptions(this) { InstrumentationKinds = instrumentationKinds }; 541return new EmitOptions(this) { DefaultSourceFileEncoding = defaultSourceFileEncoding }; 551return new EmitOptions(this) { FallbackSourceFileEncoding = fallbackSourceFileEncoding };
FileSystemExtensions.cs (1)
57options: new EmitOptions(pdbFilePath: pdbPath),
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (3)
CommandLineTests.cs (3)
7343var peHeaders = new PEHeaders(compilation.EmitToStream(options: new EmitOptions(subsystemVersion: SubsystemVersion.Create(5, 1)))); 9777Assert.Equal("v4.0.30319", ModuleMetadata.CreateFromImage(comp.EmitToArray(new EmitOptions(runtimeMetadataVersion: "v4.0.30319"))).Module.MetadataVersion); 9780Assert.Equal("_+@%#*^", ModuleMetadata.CreateFromImage(comp.EmitToArray(new EmitOptions(runtimeMetadataVersion: "_+@%#*^"))).Module.MetadataVersion);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
PdbSourceDocument\AbstractPdbSourceDocumentTests.cs (3)
297emitOptions = new EmitOptions(metadataOnly: true, includePrivateMembers: false); 301emitOptions = new EmitOptions(debugInformationFormat: DebugInformationFormat.PortablePdb, pdbFilePath: pdbFilePath); 306emitOptions = new EmitOptions(debugInformationFormat: DebugInformationFormat.Embedded);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (45)
Emit\CompilationEmitTests.cs (40)
214emitResult = comp.Emit(output, options: new EmitOptions(metadataOnly: true)); 271emitResult = comp.Emit(peStream, xmlDocumentationStream: xmlStream, options: new EmitOptions(metadataOnly: true)); 316emitResult = comp.Emit(peStream, xmlDocumentationStream: xmlStream, options: new EmitOptions(metadataOnly: true)); 362emitResult = comp.Emit(peStream, xmlDocumentationStream: xmlStream, options: new EmitOptions(metadataOnly: true)); 416emitResult = comp.Emit(peStream, xmlDocumentationStream: xmlStream, options: new EmitOptions(metadataOnly: true)); 472emitResult = comp.Emit(peStream, xmlDocumentationStream: xmlStream, options: new EmitOptions(metadataOnly: true)); 525emitResult = comp.Emit(peStream, xmlDocumentationStream: xmlStream, options: new EmitOptions(metadataOnly: true)); 569options: new EmitOptions(includePrivateMembers: false)); 708options: new EmitOptions(includePrivateMembers: false)); 734options: new EmitOptions(includePrivateMembers: false)); 758options: new EmitOptions(includePrivateMembers: false)); 787options: new EmitOptions(includePrivateMembers: false)); 839options: new EmitOptions(includePrivateMembers: false)); 880options: new EmitOptions(includePrivateMembers: false)); 2708emitResult = libComp.Emit(output, options: new EmitOptions(metadataOnly: true)); 3721var peHeaders = new PEHeaders(compilation.EmitToStream(options: new EmitOptions(highEntropyVirtualAddressSpace: true))); 3757var peHeaders = new PEHeaders(compilation.EmitToStream(options: new EmitOptions(baseAddress: 0x0000000010111111))); 3762peHeaders = new PEHeaders(compilation.EmitToStream(options: new EmitOptions(baseAddress: 0x8000))); 3767peHeaders = new PEHeaders(compilation.EmitToStream(options: new EmitOptions(baseAddress: 0x7fff))); 3777peHeaders = new PEHeaders(compilation.EmitToStream(options: new EmitOptions(baseAddress: 0xffff7fff))); 3782peHeaders = new PEHeaders(compilation.EmitToStream(options: new EmitOptions(baseAddress: 0xffff8000))); 3791peHeaders = new PEHeaders(compilation.EmitToStream(options: new EmitOptions(baseAddress: 0xffffffffffff7fff))); 3796peHeaders = new PEHeaders(compilation.EmitToStream(options: new EmitOptions(baseAddress: 0xffffffffffff8000))); 3811var peHeaders = new PEHeaders(compilation.EmitToStream(options: new EmitOptions(fileAlignment: 1024))); 4023Assert.True(compilation.Emit(stream, options: new EmitOptions(outputNameOverride: nameWithExtension)).Success); 4059Assert.True(compilation.Emit(stream, options: new EmitOptions(outputNameOverride: outputName + extension)).Success); 4089Assert.True(compilation.Emit(stream, options: new EmitOptions(outputNameOverride: nameOverride + extension)).Success); 4120Assert.True(compilation.Emit(stream, options: new EmitOptions(outputNameOverride: nameOverride)).Success); 4151Assert.True(compilation.Emit(stream, options: new EmitOptions(outputNameOverride: nameOverride + extension)).Success); 4182Assert.True(compilation.Emit(stream, options: new EmitOptions(outputNameOverride: nameOverride)).Success); 4233var result = compilation.Emit(new MemoryStream(), options: new EmitOptions(outputNameOverride: "x\0x")); 4671var emitOptions = new EmitOptions(runtimeMetadataVersion: "v1234"); 4756var emitOptions = new EmitOptions(runtimeMetadataVersion: "v1234"); 4801var emitOptions = new EmitOptions(runtimeMetadataVersion: "v1234"); 4857var emitOptions = new EmitOptions(runtimeMetadataVersion: "v1234"); 4888var emitOptions = new EmitOptions(runtimeMetadataVersion: "v1234"); 4936var emitOptions = new EmitOptions(runtimeMetadataVersion: "v1234"); 4965var emitOptions = new EmitOptions(runtimeMetadataVersion: "v1234"); 5013var emitOptions = new EmitOptions(runtimeMetadataVersion: "v1234"); 5644var emitOptions = new EmitOptions(metadataOnly: true);
Emit\CovariantReturnTests.cs (1)
231return compilation.EmitToImageReference(options: new CodeAnalysis.Emit.EmitOptions(runtimeMetadataVersion: "v5.1"));
Emit\DeterministicTests.cs (1)
488var optEmit = new EmitOptions()
Emit\EmitErrorTests.cs (1)
254var result = compilation2.Emit(executableStream, options: new EmitOptions(metadataOnly: true));
Emit\NoPiaEmbedTypes.cs (1)
142var result = compilation.Emit(executableStream, options: new EmitOptions(metadataOnly: true));
Emit\ResourceTests.cs (1)
446emit = (c, s, r) => c.Emit(s, manifestResources: r, options: new EmitOptions(metadataOnly: metadataOnly));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (3)
Emit\NumericIntPtrTests.cs (2)
10343var emitOptions = new EmitOptions(runtimeMetadataVersion: "v5.1", debugInformationFormat: DebugInformationFormat.PortablePdb); 11824emitOptions: new EmitOptions(runtimeMetadataVersion: "v5.1", debugInformationFormat: DebugInformationFormat.PortablePdb),
PDB\PDBTests.cs (1)
12882var result = compilation.Emit(outStream, options: new EmitOptions(pdbFilePath: "test\\?.pdb", debugInformationFormat: DebugInformationFormat.Embedded));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (7)
Attributes\AttributeTests.cs (4)
4883syntaxTrees: new[] { Parse("public enum Bar { Baz }") }).EmitToStream(options: new EmitOptions(metadataOnly: true)); 4892"public class Goo { }") }).EmitToStream(options: new EmitOptions(metadataOnly: true)); 10036var emitResult2 = compilation2.Emit(peStream: new MemoryStream(), options: new EmitOptions(metadataOnly: true)); 10050var emitResult3 = compilation3.Emit(peStream: new MemoryStream(), options: new EmitOptions(metadataOnly: true));
Attributes\AttributeTests_Security.cs (1)
641comp.EmitToArray(options: new EmitOptions(runtimeMetadataVersion: "v4.0.31019"), expectedWarnings: new DiagnosticDescription[0]);
Attributes\AttributeTests_Synthesized.cs (2)
1800var reference = CreateCompilationWithMscorlib461(source, options: referenceOptions).EmitToImageReference(options: new EmitOptions(metadataOnly: true)); 1899var reference = CreateCompilationWithMscorlib461(source, options: referenceOptions).EmitToImageReference(options: new EmitOptions(metadataOnly: true));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\InterpolationTests.cs (2)
1036.VerifyEmitDiagnostics(new CodeAnalysis.Emit.EmitOptions(runtimeMetadataVersion: "x.y"), 1069.VerifyEmitDiagnostics(new CodeAnalysis.Emit.EmitOptions(runtimeMetadataVersion: "x.y"),
Semantics\LambdaTests.cs (2)
525var emitResult = vbProject.Emit(metadataStream, options: new EmitOptions(metadataOnly: true)); 574var vbMetadata = vbProject.EmitToArray(options: new EmitOptions(metadataOnly: true));
Semantics\RawInterpolationTests.cs (2)
1036.VerifyEmitDiagnostics(new CodeAnalysis.Emit.EmitOptions(runtimeMetadataVersion: "x.y"), 1068.VerifyEmitDiagnostics(new CodeAnalysis.Emit.EmitOptions(runtimeMetadataVersion: "x.y"),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (14)
Compilation\CompilationAPITests.cs (2)
399var options = new EmitOptions( 426var options = new EmitOptions(pdbChecksumAlgorithm: default(HashAlgorithmName));
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (1)
871var mtdata = comp1.EmitToArray(options: new EmitOptions(metadataOnly: true));
Symbols\AnonymousTypesSymbolTests.cs (1)
592var result = compilation.Emit(stream, options: new EmitOptions(metadataOnly: metadataOnly));
Symbols\CovariantReturnTests.cs (5)
221}, assemblyName: "mscorlib").EmitToImageReference(options: new CodeAnalysis.Emit.EmitOptions(runtimeMetadataVersion: "v4.1")); 225}, assemblyName: "mscorlib").EmitToImageReference(options: new CodeAnalysis.Emit.EmitOptions(runtimeMetadataVersion: "v4.2")); 229}, assemblyName: "mscorlib").EmitToImageReference(options: new CodeAnalysis.Emit.EmitOptions(runtimeMetadataVersion: "v5.0")); 233}, assemblyName: "mscorlib").EmitToImageReference(options: new CodeAnalysis.Emit.EmitOptions(runtimeMetadataVersion: "v5.1")); 237}, assemblyName: "mscorlib").EmitToImageReference(options: new CodeAnalysis.Emit.EmitOptions(runtimeMetadataVersion: "v4.9"));
Symbols\ErrorTypeSymbolTests.cs (2)
31var reference1 = MetadataReference.CreateFromImage(compilation1.EmitToArray(options: new EmitOptions(metadataOnly: true))); 45var reference2 = MetadataReference.CreateFromImage(compilation2.EmitToArray(options: new EmitOptions(metadataOnly: true)));
Symbols\Source\BaseClassTests.cs (1)
1620var metadata1 = c1.EmitToArray(options: new EmitOptions(metadataOnly: true));
Symbols\SymbolErrorTests.cs (2)
104references: new[] { ModuleMetadata.CreateFromImage(module1.EmitToArray(options: new EmitOptions(metadataOnly: true))).GetReference() }); 109references: new[] { ModuleMetadata.CreateFromImage(module2.EmitToArray(options: new EmitOptions(metadataOnly: true))).GetReference() });
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Emit\CompilationOutputFilesTests.cs (1)
33var peImage = compilation.EmitToArray(new EmitOptions(debugInformationFormat: DebugInformationFormat.PortablePdb), pdbStream: pdbStream);
Emit\CompilationOutputsTests.cs (1)
57var peImage = compilation.EmitToArray(new EmitOptions(debugInformationFormat: format), pdbStream: pdbStream);
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (1)
304var (peImage, pdbImage) = compilation.EmitToArrays(new EmitOptions(debugInformationFormat: pdbFormat));
Microsoft.CodeAnalysis.Features.UnitTests (5)
EditAndContinue\EditAndContinueMethodDebugInfoReaderTests.cs (1)
67compilation.EmitToArray(new EmitOptions(debugInformationFormat: format), pdbStream: pdbStream);
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (4)
2597var (peImage, pdbImage) = compilationV1.EmitToArrays(new EmitOptions(debugInformationFormat: DebugInformationFormat.PortablePdb)); 3170var (peImageA, pdbImageA) = compilationA.EmitToArrays(new EmitOptions(debugInformationFormat: DebugInformationFormat.PortablePdb)); 3176var (peImageB, pdbImageB) = compilationB.EmitToArrays(new EmitOptions(debugInformationFormat: DebugInformationFormat.PortablePdb)); 3342var peImage = compilationV1.EmitToArray(new EmitOptions(debugInformationFormat: DebugInformationFormat.PortablePdb), pdbStream: pdbStream);
Microsoft.CodeAnalysis.Rebuild (1)
CompilationFactory.cs (1)
148options: new EmitOptions(
Microsoft.CodeAnalysis.Rebuild.UnitTests (5)
CompilationOptionsReaderTests.cs (1)
32var peBytes = compilation.EmitToArray(new EmitOptions(debugInformationFormat: DebugInformationFormat.Embedded));
CSharpRebuildTests.cs (1)
27var originalBytes = original.EmitToArray(new EmitOptions(debugInformationFormat: DebugInformationFormat.Embedded));
DeterministicKeyBuilderTests.cs (1)
35public static EmitOptions EmitOptions { get; } = new();
OptionRoundTripTests.cs (1)
83RoundTripUtil.VerifyRoundTrip(original, new EmitOptions(debugInformationFormat: DebugInformationFormat.PortablePdb, pdbFilePath: "test.pdb"));
RoundTripUtil.cs (1)
75emitOptions ??= new EmitOptions(debugInformationFormat: DebugInformationFormat.Embedded);
Microsoft.CodeAnalysis.Scripting (1)
ScriptBuilder.cs (1)
51private static readonly EmitOptions s_EmitOptionsWithDebuggingInformation = new EmitOptions(
Microsoft.CodeAnalysis.Test.Utilities (1)
PDB\DeterministicBuildCompilationTestHelpers.cs (1)
36var emitOptions = new EmitOptions(
Microsoft.CodeAnalysis.UnitTests (3)
Emit\EmitOptionsTests.cs (3)
101var options1 = new EmitOptions( 114var options2 = new EmitOptions( 128var options3 = new EmitOptions(
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
CommandLineTests.vb (1)
6498Dim peHeaders = New PEHeaders(comp.EmitToStream(New EmitOptions(subsystemVersion:=SubsystemVersion.Create(5, 1))))
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (31)
Attributes\AttributeTests.vb (4)
1879syntaxTrees:={Parse("Public Enum Bar : Baz : End Enum")}).EmitToArray(New EmitOptions(metadataOnly:=True)) 1894End Class]]>.Value)}).EmitToArray(options:=New EmitOptions(metadataOnly:=True)) 4828Dim emitResult2 = compilation2.Emit(peStream:=New MemoryStream(), options:=New EmitOptions(metadataOnly:=True)) 4843Dim emitResult3 = compilation3.Emit(peStream:=New MemoryStream(), options:=New EmitOptions(metadataOnly:=True))
Attributes\AttributeTests_Synthesized.vb (3)
1599Dim reference = CreateCompilationWithMscorlib45AndVBRuntime(source).EmitToImageReference(New EmitOptions(metadataOnly:=True)) 1624Dim reference = CreateCompilationWithMscorlib45AndVBRuntime(source, options:=TestOptions.DebugDll).EmitToImageReference(New EmitOptions(metadataOnly:=True)) 1749Dim reference = CreateCompilationWithMscorlib45AndVBRuntime(source, options:=options).EmitToImageReference(New EmitOptions(metadataOnly:=True))
CodeGen\AnonymousTypesCodeGenTests.vb (1)
169Dim result = compilation.Emit(stream, options:=New EmitOptions(metadataOnly:=j Mod 2 = 0))
CodeGen\CodeGenAsyncTests.vb (1)
2452Dim emitResult = compilation.Emit(stream, options:=New EmitOptions(metadataOnly:=True))
Emit\CompilationEmitTests.vb (19)
269emitResult = compilation.Emit(output, options:=New EmitOptions(metadataOnly:=True)) 323emitResult = compilation.Emit(output, xmlDocumentationStream:=xmlStream, options:=New EmitOptions(metadataOnly:=True)) 369emitResult = compilation.Emit(output, xmlDocumentationStream:=xmlStream, options:=New EmitOptions(metadataOnly:=True)) 415emitResult = compilation.Emit(output, xmlDocumentationStream:=xmlStream, options:=New EmitOptions(metadataOnly:=True)) 464emitResult = compilation.Emit(output, xmlDocumentationStream:=xmlStream, options:=New EmitOptions(metadataOnly:=True)) 514emitResult = compilation.Emit(output, xmlDocumentationStream:=xmlStream, options:=New EmitOptions(metadataOnly:=True)) 563emitResult = compilation.Emit(output, xmlDocumentationStream:=xmlStream, options:=New EmitOptions(metadataOnly:=True)) 2294Dim peHeaders = New PEHeaders(compilation.EmitToStream(options:=New EmitOptions(highEntropyVirtualAddressSpace:=True))) 2330Dim peHeaders = New PEHeaders(compilation.EmitToStream(options:=New EmitOptions(baseAddress:=&H10111111))) 2335peHeaders = New PEHeaders(compilation.EmitToStream(options:=New EmitOptions(baseAddress:=&H8000))) 2340peHeaders = New PEHeaders(compilation.EmitToStream(options:=New EmitOptions(baseAddress:=&H7FFF))) 2371Dim peHeaders = New PEHeaders(compilation.EmitToStream(options:=New EmitOptions(fileAlignment:=1024))) 2375peHeaders = New PEHeaders(compilation.EmitToStream(options:=New EmitOptions(fileAlignment:=4096))) 3389Assert.True(compilation.Emit(stream, options:=New EmitOptions(outputNameOverride:=nameOverride & extension)).Success) 3425Assert.True(compilation.Emit(stream, , options:=New EmitOptions(outputNameOverride:=nameOverride & extension)).Success) 3462Assert.True(compilation.Emit(stream, , options:=New EmitOptions(outputNameOverride:=nameOverride)).Success) 3499Assert.True(compilation.Emit(stream, , options:=New EmitOptions(outputNameOverride:=nameOverride & extension)).Success) 3536Assert.True(compilation.Emit(stream, , options:=New EmitOptions(outputNameOverride:=nameOverride)).Success) 3561Dim result = compilation.Emit(New MemoryStream(), options:=New EmitOptions(outputNameOverride:=" "))
Emit\NoPiaEmbedTypes.vb (1)
517Dim result = compilation.Emit(executableStream, options:=New EmitOptions(metadataOnly:=True))
PDB\PDBTests.vb (1)
4670Dim result = Compilation.Emit(outStream, options:=New EmitOptions(pdbFilePath:="test\\?.pdb", debugInformationFormat:=DebugInformationFormat.Embedded))
PDB\VisualBasicDeterministicBuildCompilationTests.vb (1)
175Dim emitOptions = New EmitOptions(debugInformationFormat:=DebugInformationFormat.Embedded)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Compilation\CompilationAPITests.vb (2)
495Dim options = New EmitOptions( 516Dim options = New EmitOptions(pdbChecksumAlgorithm:=New HashAlgorithmName())
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (2)
SymbolsTests\Metadata\MetadataMemberTests.vb (1)
716Dim mtdata = DirectCast(comp1, Compilation).EmitToArray(options:=New EmitOptions(metadataOnly:=True))
SymbolsTests\Source\BaseClassTests.vb (1)
2207Dim compilationImage = compilation.EmitToArray(options:=New EmitOptions(metadataOnly:=True))
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\SolutionCompilationState.SkeletonReferenceCache.cs (1)
76private static readonly EmitOptions s_metadataOnlyEmitOptions = new(
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
ProjectSystemShim\VisualStudioCompilationOutputFilesTests.cs (2)
41var peImage = compilation.EmitToArray(new EmitOptions(debugInformationFormat: pdbFormat, pdbFilePath: debugDirPdbPath), pdbStream: pdbStream); 90var peImage = compilation.EmitToArray(new EmitOptions(debugInformationFormat: DebugInformationFormat.PortablePdb, pdbFilePath: debugDirPdbPath), pdbStream: pdbStream);
SemanticSearch.BuildTask.UnitTests (3)
GenerateFilteredReferenceAssembliesTaskTests.cs (3)
113var libImage = libSource.EmitToArray(new EmitOptions(metadataOnly: true)).ToArray(); 158var libImage = libSource.EmitToArray(new EmitOptions(metadataOnly: true)).ToArray(); 198var libImage = libSource.EmitToArray(new EmitOptions(metadataOnly: true)).ToArray();
463 references to EmitOptions
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
126var emitOptions = new EmitOptions(
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
126var emitOptions = new EmitOptions(
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (5)
CSharpCompiler.cs (4)
28private EmitOptions? _emitOptions; 64public virtual EmitOptions EmitOptions 122private EmitOptions GetEmitOptions(DependencyContextCompilationOptions dependencyContextOptions) 158var emitOptions = new EmitOptions(debugInformationFormat: debugInformationFormat);
RuntimeViewCompiler.cs (1)
342var emitOptions = _csharpCompiler.EmitOptions;
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (2)
RuntimeViewCompilerTest.cs (2)
897public EmitOptions EmitOptionsSettable { get; set; } 901public override EmitOptions EmitOptions => EmitOptionsSettable;
Microsoft.CodeAnalysis (48)
CommandLine\CommandLineArguments.cs (1)
83public EmitOptions EmitOptions { get; internal set; } = null!; // initialized by Parse
CommandLine\CommonCompiler.cs (2)
1253var emitOptions = Arguments.EmitOptions. 1750EmitOptions? emitOptions)
Compilation\Compilation.cs (14)
203EmitOptions? emitOptions = null, 215EmitOptions? emitOptions = null, 2199EmitOptions emitOptions, 2471EmitOptions emitOptions, 2642emitOptions: EmitOptions.Default, 2680EmitOptions options, 2704EmitOptions options, 2728EmitOptions options, 2789EmitOptions? options = null, 2817EmitOptions? options, 2935EmitOptions? options, 2943options = options ?? EmitOptions.Default.WithIncludePrivateMembers(metadataPEStream == null); 3150EmitOptions options, 3213EmitOptions emitOptions,
Compilation\DeterministicKey.cs (2)
59EmitOptions? emitOptions = null, 86EmitOptions? emitOptions = null,
Compilation\DeterministicKeyBuilder.cs (2)
129EmitOptions? emitOptions, 384EmitOptions? options,
Emit\CommonPEModuleBuilder.cs (3)
49internal EmitOptions EmitOptions { get; } 53EmitOptions emitOptions, 608EmitOptions emitOptions,
Emit\EmitOptions.cs (24)
17public sealed class EmitOptions : IEquatable<EmitOptions> 19internal static readonly EmitOptions Default = PlatformInformation.IsWindows 251private EmitOptions(EmitOptions other) : this( 275return Equals(obj as EmitOptions); 278public bool Equals(EmitOptions? other) 322public static bool operator ==(EmitOptions? left, EmitOptions? right) 327public static bool operator !=(EmitOptions? left, EmitOptions? right) 400public EmitOptions WithEmitMetadataOnly(bool value) 410public EmitOptions WithPdbFilePath(string path) 420public EmitOptions WithPdbChecksumAlgorithm(HashAlgorithmName name) 430public EmitOptions WithOutputNameOverride(string outputName) 440public EmitOptions WithDebugInformationFormat(DebugInformationFormat format) 454public EmitOptions WithFileAlignment(int value) 464public EmitOptions WithBaseAddress(ulong value) 474public EmitOptions WithHighEntropyVirtualAddressSpace(bool value) 484public EmitOptions WithSubsystemVersion(SubsystemVersion subsystemVersion) 494public EmitOptions WithRuntimeMetadataVersion(string version) 504public EmitOptions WithTolerateErrors(bool value) 514public EmitOptions WithIncludePrivateMembers(bool value) 524public EmitOptions WithInstrumentationKinds(ImmutableArray<InstrumentationKind> instrumentationKinds) 534public EmitOptions WithDefaultSourceFileEncoding(Encoding? defaultSourceFileEncoding) 544public EmitOptions WithFallbackSourceFileEncoding(Encoding? fallbackSourceFileEncoding)
Microsoft.CodeAnalysis.CSharp (15)
CommandLine\CSharpCommandLineParser.cs (1)
1514var emitOptions = new EmitOptions
Compilation\CSharpCompilation.cs (5)
3031emitOptions: EmitOptions.Default, 3378EmitOptions emitOptions, 3388(emitOptions == EmitOptions.Default && debugEntryPoint is null && sourceLinkStream is null && embeddedTexts is null && manifestResources is null && testData is null)); 3753internal string? GetRuntimeMetadataVersion(EmitOptions emitOptions, DiagnosticBag diagnostics) 3771private string? GetRuntimeMetadataVersion(EmitOptions emitOptions)
Emitter\EditAndContinue\EmitHelpers.cs (2)
36var emitOptions = EmitOptions.Default.WithDebugInformationFormat(baseline.HasPortablePdb ? DebugInformationFormat.PortablePdb : DebugInformationFormat.Pdb);
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (2)
49EmitOptions emitOptions, 252Debug.Assert(EmitOptions.InstrumentationKinds.IsEmpty);
Emitter\Model\PEAssemblyBuilder.cs (2)
69EmitOptions emitOptions, 633EmitOptions emitOptions,
Emitter\Model\PEModuleBuilder.cs (2)
79EmitOptions emitOptions, 506=> new MethodInstrumentation { Kinds = EmitOptions.InstrumentationKinds };
Emitter\Model\PENetModuleBuilder.cs (1)
20EmitOptions emitOptions,
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
4824Assert.Equal(EmitOptions.Default.HighEntropyVirtualAddressSpace, parsedArgs.EmitOptions.HighEntropyVirtualAddressSpace); 4828Assert.Equal(EmitOptions.Default.HighEntropyVirtualAddressSpace, parsedArgs.EmitOptions.HighEntropyVirtualAddressSpace);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
PdbSourceDocument\AbstractPdbSourceDocumentTests.cs (1)
293EmitOptions emitOptions;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (115)
CodeGen\CodeGenTests.cs (1)
13277EmitOptions.Default,
Emit\CompilationEmitTests.cs (82)
907var emitRefAssembly = EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false); 928var emitRefAssembly = EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false); 950var emitRefAssembly = EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false); 1206var image1 = comp1.EmitToStream(EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(includePrivateMembers)); 1210var image2 = comp2.EmitToStream(EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(includePrivateMembers)); 1285var refoutOptions = EmitOptions.Default.WithEmitMetadataOnly(false).WithIncludePrivateMembers(false); 1297var refonlyOptions = EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false); 1325var refonlyOptions = EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false); 1334var refoutOptions = EmitOptions.Default.WithEmitMetadataOnly(false).WithIncludePrivateMembers(false); 1808var image1 = comp1.EmitToImageReference(EmitOptions.Default); 1816var image2 = comp2.EmitToImageReference(EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)); 1868EmitOptions.Default.WithEmitMetadataOnly(false)); 1874EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(true)); 1880EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)); 1884private static void VerifyRefAssemblyClient(string lib_cs, string source, Action<CSharpCompilation> validator, EmitOptions emitOptions) 1973var options = EmitOptions.Default.WithIncludePrivateMembers(false); 1985var options = EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false); 2088verifyIgnoresDiagnostics(EmitOptions.Default.WithEmitMetadataOnly(false).WithTolerateErrors(false), success: false); 2089verifyIgnoresDiagnostics(EmitOptions.Default.WithEmitMetadataOnly(true).WithTolerateErrors(false), success: expectSuccess); 2091void verifyIgnoresDiagnostics(EmitOptions emitOptions, bool success) 2128CompileAndVerify(comp, emitOptions: EmitOptions.Default, verify: Verification.Passes); 2131var realImage = comp.EmitToImageReference(EmitOptions.Default); 2159var emitRegularWithoutPrivateMembers = EmitOptions.Default.WithIncludePrivateMembers(false); 2187var emitMetadataOnly = EmitOptions.Default.WithEmitMetadataOnly(true); 2216var emitRefOnly = EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false); 2266CompileAndVerify(comp, emitOptions: EmitOptions.Default, verify: Verification.Passes); 2268var realImage = comp.EmitToImageReference(EmitOptions.Default); 2275var emitMetadataOnly = EmitOptions.Default.WithEmitMetadataOnly(true); 2287var emitRefOnly = EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false); 2333CompileAndVerify(comp, emitOptions: EmitOptions.Default, verify: Verification.Passes); 2335var realImage = comp.EmitToImageReference(EmitOptions.Default); 2342var emitMetadataOnly = EmitOptions.Default.WithEmitMetadataOnly(true); 2354var emitRefOnly = EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false); 2400CompileAndVerify(comp, emitOptions: EmitOptions.Default, verify: Verification.Passes); 2402var realImage = comp.EmitToImageReference(EmitOptions.Default); 2409var emitMetadataOnly = EmitOptions.Default.WithEmitMetadataOnly(true); 2421var emitRefOnly = EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false); 2460var emitRefOnly = EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false); 2505var emitRefOnly = EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false); 2530options: EmitOptions.Default.WithEmitMetadataOnly(true))); 2544options: EmitOptions.Default.WithEmitMetadataOnly(true))); 2558options: EmitOptions.Default.WithIncludePrivateMembers(true))); 2572_ = comp.Emit(output, options: EmitOptions.Default.WithIncludePrivateMembers(false)); 2586options: EmitOptions.Default)); 2599options: EmitOptions.Default.WithEmitMetadataOnly(true))); 2613options: EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.Embedded).WithIncludePrivateMembers(false)); 2638options: EmitOptions.Default.WithEmitMetadataOnly(true) 2723var module = new PEAssemblyBuilder((SourceAssemblySymbol)class1.ContainingAssembly, EmitOptions.Default, 3772peHeaders = new PEHeaders(compilation.EmitToStream(options: EmitOptions.Default)); 3786peHeaders = new PEHeaders(compilation.EmitToStream(options: EmitOptions.Default)); 4671var emitOptions = new EmitOptions(runtimeMetadataVersion: "v1234"); 4756var emitOptions = new EmitOptions(runtimeMetadataVersion: "v1234"); 4801var emitOptions = new EmitOptions(runtimeMetadataVersion: "v1234"); 4857var emitOptions = new EmitOptions(runtimeMetadataVersion: "v1234"); 4888var emitOptions = new EmitOptions(runtimeMetadataVersion: "v1234"); 4936var emitOptions = new EmitOptions(runtimeMetadataVersion: "v1234"); 4965var emitOptions = new EmitOptions(runtimeMetadataVersion: "v1234"); 5013var emitOptions = new EmitOptions(runtimeMetadataVersion: "v1234"); 5194var result = compilation.Emit(output, pdbStream, options: EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb)); 5473var portablePdbOptions = EmitOptions.Default 5644var emitOptions = new EmitOptions(metadataOnly: true);
Emit\DeterministicTests.cs (5)
34private Guid CompiledGuid(string source, string assemblyName, CSharpCompilationOptions options, EmitOptions emitOptions = null, Platform platform = Platform.AnyCpu) 66return (pe: compilation.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(pdbFormat), pdbStream: pdbStream), 173var emitRefAssembly = EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false); 488var optEmit = new EmitOptions()
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.cs (17)
76var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 220var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 340var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 434var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 491var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 530var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 561var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 601var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 669var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 750var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 831var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 925var peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 958var peImage = c.EmitToArray(EmitOptions.Default); 980var emitOptions = EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage)); 1019var emitOptions = EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage));
Emit\DynamicAnalysis\DynamicInstrumentationTests.cs (5)
2450ImmutableArray<Diagnostic> diagnostics = CreateEmptyCompilation(source + InstrumentationHelperSource).GetEmitDiagnostics(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 2961var verifier = CompileAndVerify(c, emitOptions: EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 2997var verifier = CompileAndVerify(c, emitOptions: EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))); 3648emitOptions: EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage)), 3663return base.CompileAndVerify(compilation, expectedOutput: expectedOutput, emitOptions: EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage)));
Emit\EmitMetadataTests.cs (5)
1413var module = new PEAssemblyBuilder((SourceAssemblySymbol)sourceType.ContainingAssembly, EmitOptions.Default, OutputKind.DynamicallyLinkedLibrary, 2229var options = EmitOptions.Default.WithFileAlignment(0x2000); 2413var options = EmitOptions.Default.
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (34)
Emit\EditAndContinue\EditAndContinuePdbTests.cs (1)
129var v0 = CompileAndVerify(compilation0, emitOptions: EmitOptions.Default.WithDebugInformationFormat(format));
Emit\EditAndContinue\EditAndContinueStateMachineTests.cs (2)
231var v0 = CompileAndVerify(compilation0, emitOptions: EmitOptions.Default.WithDebugInformationFormat(format)); 8157var v0 = CompileAndVerify(compilation0, emitOptions: EmitOptions.Default.WithDebugInformationFormat(format), symbolValidator: module =>
Emit\EditAndContinue\EditAndContinueTests.cs (3)
568var bytes0 = compilation0.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb)); 12359var bytes0 = compilation0.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb)); 12449var bytes0 = compilation0.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb));
Emit\NumericIntPtrTests.cs (2)
6899var verifier = CompileAndVerify(comp, emitOptions: EmitOptions.Default.WithRuntimeMetadataVersion("0.0.0.0"), verify: Verification.Skipped); 10343var emitOptions = new EmitOptions(runtimeMetadataVersion: "v5.1", debugInformationFormat: DebugInformationFormat.PortablePdb);
Emit\RuntimeProbing\ModuleCancellationTests.cs (2)
23private static readonly EmitOptions s_emitOptions = EmitOptions.Default.WithInstrumentationKinds([InstrumentationKind.ModuleCancellation]);
Emit\RuntimeProbing\StackOverflowProbingTests.cs (2)
22private static readonly EmitOptions s_emitOptions = EmitOptions.Default.WithInstrumentationKinds([InstrumentationKind.StackOverflowProbing]);
PDB\CSharpDeterministicBuildCompilationTests.cs (6)
32EmitOptions emitOptions, 57EmitOptions emitOptions, 97public void PortablePdb_DeterministicCompilation(CSharpCompilationOptions compilationOptions, EmitOptions emitOptions, CSharpParseOptions parseOptions) 157public void PortablePdb_DeterministicCompilation_DuplicateFilePaths(CSharpCompilationOptions compilationOptions, EmitOptions emitOptions, CSharpParseOptions parseOptions) 221public void PortablePdb_DeterministicCompilationWithSJIS(CSharpCompilationOptions compilationOptions, EmitOptions emitOptions, CSharpParseOptions parseOptions) 287foreach (var emitOptions in DeterministicBuildCompilationTestHelpers.GetEmitOptions())
PDB\PDBAsyncTests.cs (1)
2039options: EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb));
PDB\PDBEmbeddedSourceTests.cs (1)
108EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.Embedded),
PDB\PDBIteratorTests.cs (1)
1633options: EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb));
PDB\PDBSourceLinkTests.cs (5)
54c.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(format), pdbStream: pdbStream, sourceLinkStream: new MemoryStream(sourceLinkBlob)); 83var peBlob = c.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.Embedded), sourceLinkStream: new MemoryStream(sourceLinkBlob)); 123var result = c.Emit(new MemoryStream(), pdbStream, options: EmitOptions.Default.WithDebugInformationFormat(format), sourceLinkStream: sourceLinkStream); 153options: EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.Pdb), 188c.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(format), pdbStream: pdbStream, sourceLinkStream: new MemoryStream(sourceLinkBlob));
PDB\PDBUsingTests.cs (1)
3319c.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb), pdbStream: pdbStream);
PDB\PortablePdbTests.cs (6)
45var peBlob = c.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb), pdbStream: pdbStream); 168var peBlob = c.EmitToArray(EmitOptions.Default. 228var peBlob = c.EmitToArray(EmitOptions.Default. 304c.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb), pdbStream: pdbStream, sourceLinkStream: new MemoryStream(sourceLinkBlob)); 344var peBlob = c.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.Embedded), sourceLinkStream: new MemoryStream(sourceLinkBlob)); 382var result = c.Emit(new MemoryStream(), new MemoryStream(), options: EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb), sourceLinkStream: sourceLinkStream);
PDB\TypeDefinitionDocumentTests.cs (1)
467var pe = compilation.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb), pdbStream: pdbStream);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Attributes\AttributeTests_Embedded.cs (4)
320CreateEmptyCompilation(code).VerifyEmitDiagnostics(CodeAnalysis.Emit.EmitOptions.Default.WithRuntimeMetadataVersion("v4.0.30319"), 360CreateEmptyCompilation(code).VerifyEmitDiagnostics(CodeAnalysis.Emit.EmitOptions.Default.WithRuntimeMetadataVersion("v4.0.30319"), 421CreateEmptyCompilation(code).VerifyEmitDiagnostics(CodeAnalysis.Emit.EmitOptions.Default.WithRuntimeMetadataVersion("v4.0.30319"), 480CreateEmptyCompilation(code).VerifyEmitDiagnostics(CodeAnalysis.Emit.EmitOptions.Default.WithRuntimeMetadataVersion("v4.0.30319"),
Attributes\InternalsVisibleToAndStrongNameTests.cs (2)
1738var emitOptions = EmitOptions.Default.WithOutputNameOverride("a.dll");
FieldKeywordTests.cs (1)
8297Microsoft.CodeAnalysis.Emit.EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(includePrivateMembers));
RefStructInterfacesTests.cs (1)
4371emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true)).VerifyDiagnostics();
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
ScriptTests.cs (1)
88var emitOptions = ScriptBuilder.GetEmitOptions(emitDebugInformation: true).WithDebugInformationFormat(format);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (21)
Semantics\InitOnlyMemberTests.cs (2)
4816var emitOptions = EmitOptions.Default.WithRuntimeMetadataVersion("0.0.0.0");
Semantics\InterceptorsTests.cs (2)
1107var verifier = CompileAndVerify(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: RegularWithInterceptors, emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true)); 1145comp.VerifyEmitDiagnostics(EmitOptions.Default.WithEmitMetadataOnly(true),
Semantics\NativeIntegerTests.cs (6)
1138var ref1 = comp.EmitToImageReference(EmitOptions.Default.WithRuntimeMetadataVersion("0.0.0.0")); 1470verifyReference(comp.EmitToImageReference(EmitOptions.Default.WithRuntimeMetadataVersion("0.0.0.0")), includesIEquatable: true); 1496verifyReference(comp.EmitToImageReference(EmitOptions.Default.WithRuntimeMetadataVersion("0.0.0.0")), includesIEquatable: false); 4598var refA = comp.EmitToImageReference(options: EmitOptions.Default.WithRuntimeMetadataVersion("4.0.0.0")); 10378var verifier = CompileAndVerify(comp, emitOptions: EmitOptions.Default.WithRuntimeMetadataVersion("0.0.0.0"), verify: Verification.Skipped); 12387CompileAndVerify(comp, emitOptions: EmitOptions.Default);
Semantics\NullableReferenceTypesTests.cs (2)
138692emitOptions: CodeAnalysis.Emit.EmitOptions.Default.WithEmitMetadataOnly(metadataOnly), 138733emitOptions: CodeAnalysis.Emit.EmitOptions.Default.WithEmitMetadataOnly(metadataOnly),
Semantics\RefFieldTests.cs (4)
2228var emitOptions = Microsoft.CodeAnalysis.Emit.EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(includePrivateMembers); 26592var ref0 = comp.EmitToImageReference(Microsoft.CodeAnalysis.Emit.EmitOptions.Default.WithRuntimeMetadataVersion("0.0.0.0")); 26717var ref0 = comp.EmitToImageReference(Microsoft.CodeAnalysis.Emit.EmitOptions.Default.WithRuntimeMetadataVersion("0.0.0.0"));
Semantics\ValueTupleTests.cs (5)
445comp.VerifyEmitDiagnostics(EmitOptions.Default.WithRuntimeMetadataVersion("0.0.0.0")); 496comp.VerifyEmitDiagnostics(EmitOptions.Default.WithRuntimeMetadataVersion("0.0.0.0")); 547comp.VerifyEmitDiagnostics(EmitOptions.Default.WithRuntimeMetadataVersion("0.0.0.0")); 595comp.VerifyEmitDiagnostics(EmitOptions.Default.WithRuntimeMetadataVersion("0.0.0.0")); 638comp.VerifyEmitDiagnostics(EmitOptions.Default.WithRuntimeMetadataVersion("0.0.0.0"));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (33)
Compilation\CompilationAPITests.cs (5)
399var options = new EmitOptions( 426var options = new EmitOptions(pdbChecksumAlgorithm: default(HashAlgorithmName)); 449Assert.Throws<ArgumentException>("pdbStream", () => comp.Emit(peStream: new MemoryStream(), pdbStream: new MemoryStream(), options: EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.Embedded))); 454options: EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb), 466options: EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb),
Symbols\ModuleInitializers\ModuleInitializersTests.cs (1)
1155emitOptions: EmitOptions.Default.WithDebugInformationFormat(PathUtilities.IsUnixLikePlatform ? DebugInformationFormat.PortablePdb : DebugInformationFormat.Pdb),
Symbols\Source\BaseClassTests.cs (1)
1574var module = new PEAssemblyBuilder((SourceAssemblySymbol)@class.ContainingAssembly, EmitOptions.Default, OutputKind.DynamicallyLinkedLibrary,
Symbols\Source\FileModifierTests.cs (2)
853var emitOptions = EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.Embedded);
Symbols\Source\MethodTests.cs (6)
1682var module = new PEAssemblyBuilder((SourceAssemblySymbol)@class.ContainingAssembly, EmitOptions.Default, OutputKind.DynamicallyLinkedLibrary, 1726var module = new PEAssemblyBuilder((SourceAssemblySymbol)@class.ContainingAssembly, EmitOptions.Default, OutputKind.DynamicallyLinkedLibrary, 1773var module = new PEAssemblyBuilder((SourceAssemblySymbol)@class.ContainingAssembly, EmitOptions.Default, OutputKind.DynamicallyLinkedLibrary, 1827var module = new PEAssemblyBuilder((SourceAssemblySymbol)@class.ContainingAssembly, EmitOptions.Default, OutputKind.DynamicallyLinkedLibrary, 1968var module = new PEAssemblyBuilder((SourceAssemblySymbol)classC.ContainingAssembly, EmitOptions.Default, OutputKind.DynamicallyLinkedLibrary, 2012var module = new PEAssemblyBuilder((SourceAssemblySymbol)classC.ContainingAssembly, EmitOptions.Default, OutputKind.DynamicallyLinkedLibrary,
Symbols\Source\PropertyTests.cs (2)
2505var module = new PEAssemblyBuilder((SourceAssemblySymbol)@class.ContainingAssembly, EmitOptions.Default, OutputKind.DynamicallyLinkedLibrary, 2543var module = new PEAssemblyBuilder((SourceAssemblySymbol)@class.ContainingAssembly, EmitOptions.Default, OutputKind.DynamicallyLinkedLibrary,
Symbols\StaticAbstractMembersInInterfacesTests.cs (16)
16066emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics(); 16128emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics(); 19300emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics(); 19381emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics(); 19473emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics(); 19572emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics(); 19655emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics(); 19747emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics(); 19836emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics(); 22928emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics(); 23023emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics(); 23114emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics(); 25706emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics(); 25801emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics(); 28657emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics(); 28785emitOptions: EmitOptions.Default.WithEmitMetadataOnly(true).WithIncludePrivateMembers(false)).VerifyDiagnostics();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
2876ca.VerifyEmitDiagnostics(EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb),
Microsoft.CodeAnalysis.CSharp.Test.Utilities (10)
CompilingTestBase.cs (1)
31emitOptions: EmitOptions.Default,
CSharpTestBase.cs (7)
812EmitOptions emitOptions = null, 848EmitOptions emitOptions = null, 885EmitOptions emitOptions = null, 926EmitOptions emitOptions = null, 962EmitOptions emitOptions = null, 998EmitOptions emitOptions = null, 1032EmitOptions emitOptions = null,
TestOptions.cs (2)
102public static readonly EmitOptions NativePdbEmit = EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.Pdb);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (3)
PdbTests.cs (3)
55result = comp.Emit(output, options: EmitOptions.Default.WithHighEntropyVirtualAddressSpace(true)); 57result = comp.Emit(output, options: EmitOptions.Default.WithOutputNameOverride("goo")); 59result = comp.Emit(output, options: EmitOptions.Default.WithPdbFilePath("goo.pdb"));
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\SymReaderTestHelpers.cs (1)
38public static (ImmutableArray<byte> PEImage, ImmutableArray<byte> PdbImage) EmitToArrays(this Compilation compilation, EmitOptions options)
Microsoft.CodeAnalysis.Rebuild.UnitTests (6)
DeterministicKeyBuilderTests.cs (5)
35public static EmitOptions EmitOptions { get; } = new(); 240EmitOptions emitOptions, 550var emitOptions = EmitOptions.WithSubsystemVersion(SubsystemVersion.Create(major, minor)); 566var emitOptions = EmitOptions.WithPdbFilePath(path); 583var emitOptions = EmitOptions.WithPdbFilePath(filePath);
RoundTripUtil.cs (1)
68public static unsafe void VerifyRoundTrip<TCompilation>(TCompilation original, EmitOptions? emitOptions = null)
Microsoft.CodeAnalysis.Scripting (4)
ScriptBuilder.cs (4)
51private static readonly EmitOptions s_EmitOptionsWithDebuggingInformation = new EmitOptions( 168internal static EmitOptions GetEmitOptions(bool emitDebugInformation) 169=> emitDebugInformation ? s_EmitOptionsWithDebuggingInformation : EmitOptions.Default; 176EmitOptions options,
Microsoft.CodeAnalysis.Test.Utilities (27)
CommonTestBase.cs (2)
86EmitOptions emitOptions = null, 186EmitOptions emitOptions,
Compilation\CompilationExtensions.cs (5)
52EmitOptions options = null, 68options = (options ?? EmitOptions.Default).WithDebugInformationFormat(DebugInformationFormat.PortablePdb); 100public static MemoryStream EmitToStream(this Compilation compilation, EmitOptions options = null, DiagnosticDescription[] expectedWarnings = null) 117EmitOptions options = null, 124EmitOptions options = null,
Compilation\IRuntimeEnvironment.cs (4)
199EmitOptions emitOptions) 240EmitOptions emitOptions) 242emitOptions ??= EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.Embedded); 394void Emit(Compilation mainCompilation, IEnumerable<ResourceDescription> manifestResources, EmitOptions emitOptions, bool usePdbForDebugging = false);
CompilationVerifier.cs (5)
97string mainModuleFullName = Emit(testEnvironment, manifestResources: null, EmitOptions.Default); 169string mainModuleFullName = Emit(testEnvironment, manifestResources: null, EmitOptions.Default); 230string mainModuleFullName = Emit(testEnvironment, manifestResources: null, EmitOptions.Default); 263EmitOptions emitOptions, 489private string Emit(IRuntimeEnvironment testEnvironment, IEnumerable<ResourceDescription> manifestResources, EmitOptions emitOptions)
Diagnostics\DiagnosticExtensions.cs (4)
353public static TCompilation VerifyEmitDiagnostics<TCompilation>(this TCompilation c, EmitOptions options, params DiagnosticDescription[] expected) 362EmitOptions options = null, 373return VerifyEmitDiagnostics(c, EmitOptions.Default, expected); 379return GetEmitDiagnostics(c, EmitOptions.Default);
InstrumentationChecker.cs (1)
322var peImage = compilation.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage)));
Mocks\Silverlight.cs (1)
94var mscorlib = mscorlibCompilation.EmitToStream(EmitOptions.Default.WithRuntimeMetadataVersion("v4.0.30319"));
PDB\DeterministicBuildCompilationTestHelpers.cs (3)
34public static IEnumerable<EmitOptions> GetEmitOptions() 36var emitOptions = new EmitOptions( 47internal static void AssertCommonOptions(EmitOptions emitOptions, CompilationOptions compilationOptions, Compilation compilation, ImmutableDictionary<string, string> pdbOptions)
PDB\TestMetadataReferenceInfo.cs (1)
52public static TestMetadataReferenceInfo Create(Compilation compilation, string fullPath, EmitOptions emitOptions)
Platform\Desktop\DesktopRuntimeEnvironment.cs (1)
203EmitOptions emitOptions,
Microsoft.CodeAnalysis.UnitTests (31)
AnalyzerAssemblyLoaderTests.cs (1)
1324var array = compilation.EmitToArray(EmitOptions.Default);
Emit\EmitOptionsTests.cs (30)
21Func<EmitOptions, T, EmitOptions> factory, 22Func<EmitOptions, T> getter, 25var oldOpt1 = EmitOptions.Default; 33var newOpt1 = factory(oldOpt1, validNonDefaultValue); 37var newOpt1_alias = factory(newOpt1, validNonDefaultValue); 41var newOpt2 = factory(oldOpt1, validNonDefaultValue); 71/// If this test fails, please update the <see cref="EmitOptions.GetHashCode"/> 72/// and <see cref="EmitOptions.Equals(EmitOptions)"/> methods to 80typeof(EmitOptions), 81nameof(EmitOptions.EmitMetadataOnly), 82nameof(EmitOptions.SubsystemVersion), 83nameof(EmitOptions.FileAlignment), 84nameof(EmitOptions.HighEntropyVirtualAddressSpace), 85nameof(EmitOptions.BaseAddress), 86nameof(EmitOptions.DebugInformationFormat), 87nameof(EmitOptions.OutputNameOverride), 88nameof(EmitOptions.PdbFilePath), 89nameof(EmitOptions.PdbChecksumAlgorithm), 90nameof(EmitOptions.RuntimeMetadataVersion), 91nameof(EmitOptions.TolerateErrors), 92nameof(EmitOptions.IncludePrivateMembers), 93nameof(EmitOptions.InstrumentationKinds), 94nameof(EmitOptions.DefaultSourceFileEncoding), 95nameof(EmitOptions.FallbackSourceFileEncoding)); 101var options1 = new EmitOptions( 114var options2 = new EmitOptions( 128var options3 = new EmitOptions(
Microsoft.CodeAnalysis.VisualBasic (10)
Compilation\MethodCompiler.vb (1)
175emitOptions:=EmitOptions.Default,
Compilation\VisualBasicCompilation.vb (2)
2371emitOptions As EmitOptions, 2393emitOptions As EmitOptions,
Emit\EditAndContinue\EmitHelpers.vb (1)
34Dim emitOpts = EmitOptions.Default.WithDebugInformationFormat(If(baseline.HasPortablePdb, DebugInformationFormat.PortablePdb, DebugInformationFormat.Pdb))
Emit\EditAndContinue\PEDeltaAssemblyBuilder.vb (1)
48emitOptions As EmitOptions,
Emit\PEAssemblyBuilder.vb (2)
37emitOptions As EmitOptions, 174emitOptions As EmitOptions,
Emit\PEModuleBuilder.vb (2)
33emitOptions As EmitOptions, 325Return New MethodInstrumentation() With {.Kinds = EmitOptions.InstrumentationKinds}
Emit\PENetModuleBuilder.vb (1)
19emitOptions As EmitOptions,
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (68)
Attributes\AssemblyAttributes.vb (1)
1269EmitOptions.Default,
Emit\CompilationEmitTests.vb (35)
609options:=EmitOptions.Default.WithIncludePrivateMembers(False)) 637options:=EmitOptions.Default.WithIncludePrivateMembers(False)) 660Dim emitRefAssembly = EmitOptions.Default.WithEmitMetadataOnly(True).WithIncludePrivateMembers(False) 683Dim emitRefAssembly = EmitOptions.Default.WithEmitMetadataOnly(True).WithIncludePrivateMembers(False) 700Dim emitRefAssembly = EmitOptions.Default.WithEmitMetadataOnly(True).WithIncludePrivateMembers(False) 994Dim options = EmitOptions.Default.WithIncludePrivateMembers(False) 1004Dim options = EmitOptions.Default.WithEmitMetadataOnly(True).WithIncludePrivateMembers(False) 1063Dim image1 As ImmutableArray(Of Byte) = comp1.EmitToArray(EmitOptions.Default.WithEmitMetadataOnly(True).WithIncludePrivateMembers(includePrivateMembers)) 1068Dim image2 As ImmutableArray(Of Byte) = comp2.EmitToArray(EmitOptions.Default.WithEmitMetadataOnly(True).WithIncludePrivateMembers(includePrivateMembers)) 1169Dim refonlyOptions = EmitOptions.[Default].WithEmitMetadataOnly(True).WithIncludePrivateMembers(False) 1175Dim refoutOptions = EmitOptions.[Default].WithEmitMetadataOnly(False).WithIncludePrivateMembers(False) 1290Dim image1 = comp1.EmitToImageReference(EmitOptions.Default) 1301Dim image2 = comp2.EmitToImageReference(EmitOptions.Default.WithEmitMetadataOnly(True).WithIncludePrivateMembers(False)) 1363Dim options = EmitOptions.Default.WithEmitMetadataOnly(True).WithIncludePrivateMembers(False) 1383EmitOptions.Default.WithEmitMetadataOnly(False)) 1387EmitOptions.Default.WithEmitMetadataOnly(True).WithIncludePrivateMembers(True)) 1391EmitOptions.Default.WithEmitMetadataOnly(False).WithIncludePrivateMembers(False)) 1395Private Sub VerifyRefAssemblyClient(lib_vb As String, source As String, validator As Action(Of VisualBasicCompilation), emitOptions As EmitOptions) 1434Dim EmitResult = comp.Emit(output, options:=EmitOptions.Default.WithEmitMetadataOnly(True)) 1471Dim verifier = CompileAndVerify(comp, emitOptions:=EmitOptions.Default.WithEmitMetadataOnly(True), verify:=Verification.Passes) 1474Dim realImage = comp.EmitToImageReference(EmitOptions.Default) 1503Dim emitMetadataOnly = EmitOptions.Default.WithEmitMetadataOnly(True) 1537Dim emitRefOnly = EmitOptions.Default.WithEmitMetadataOnly(True).WithIncludePrivateMembers(False) 1588Dim verifier = CompileAndVerify(comp, emitOptions:=EmitOptions.Default.WithEmitMetadataOnly(True), verify:=Verification.Passes) 1591Dim realImage = comp.EmitToImageReference(EmitOptions.Default) 1605Dim emitMetadataOnly = EmitOptions.Default.WithEmitMetadataOnly(True) 1624Dim emitRefOnly = EmitOptions.Default.WithEmitMetadataOnly(True).WithIncludePrivateMembers(False) 1666Dim verifier = CompileAndVerify(comp, emitOptions:=EmitOptions.Default.WithEmitMetadataOnly(True), verify:=Verification.Passes) 1669Dim realImage = comp.EmitToImageReference(EmitOptions.Default) 1684Dim emitMetadataOnly = EmitOptions.Default.WithEmitMetadataOnly(True) 1704Dim emitRefOnly = EmitOptions.Default.WithEmitMetadataOnly(True).WithIncludePrivateMembers(False) 1733Dim verifier = CompileAndVerify(comp, emitOptions:=EmitOptions.Default.WithEmitMetadataOnly(True), verify:=Verification.Passes) 1736Dim emitRefOnly = EmitOptions.Default.WithEmitMetadataOnly(True).WithIncludePrivateMembers(False) 1761options:=EmitOptions.Default.WithEmitMetadataOnly(True))) 1774options:=EmitOptions.Default.WithEmitMetadataOnly(True)))
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.vb (9)
76Dim peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))) 193Dim peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))) 293Dim peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))) 361Dim peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))) 455Dim peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))) 560Dim peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))) 650Dim peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))) 747Dim peImage = c.EmitToArray(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))) 808Dim peImage = c.EmitToArray(EmitOptions.Default)
Emit\DynamicAnalysis\DynamicInstrumentationTests.vb (6)
1915Dim diagnostics As ImmutableArray(Of Diagnostic) = CreateCompilation(source).GetEmitDiagnostics(EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))) 2345Dim verifier = CompileAndVerify(c, emitOptions:=EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))) 2382Dim verifier = CompileAndVerify(c, emitOptions:=EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))) 2819emitOptions:=EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))) 2827emitOptions:=EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage))) 2835emitOptions:=EmitOptions.Default.WithInstrumentationKinds(ImmutableArray.Create(InstrumentationKind.TestCoverage)),
Emit\EditAndContinue\EditAndContinuePdbTests.vb (1)
133Dim v0 = CompileAndVerify(compilation0, emitOptions:=EmitOptions.Default.WithDebugInformationFormat(format))
PDB\PDBAsyncTests.vb (1)
892Dim result = compilation.Emit(peStream, pdbStream, options:=EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb))
PDB\PDBEmbeddedSourceTests.vb (1)
90EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.Embedded),
PDB\PDBIteratorTests.vb (1)
553Dim result = compilation.Emit(peStream, pdbStream, options:=EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb))
PDB\PortablePdbTests.vb (6)
40compilation.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb), pdbStream:=pdbStream) 78Dim peBlob = c.EmitToArray(EmitOptions.Default. 131Dim peBlob = c.EmitToArray(EmitOptions.Default. 200c.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb), pdbStream:=pdbStream, sourceLinkStream:=New MemoryStream(sourceLinkBlob)) 234Dim peBlob = c.EmitToArray(EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.Embedded), sourceLinkStream:=New MemoryStream(sourceLinkBlob)) 269Dim result = c.Emit(New MemoryStream(), New MemoryStream(), options:=EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb), sourceLinkStream:=sourceLinkStream)
PDB\TypeDefinitionDocumentTests.vb (1)
349Dim pe = compilation.EmitToArray(EmitOptions.[Default].WithDebugInformationFormat(DebugInformationFormat.PortablePdb), pdbStream:=pdbStream)
PDB\VisualBasicDeterministicBuildCompilationTests.vb (6)
21Private Sub VerifyCompilationOptions(originalOptions As VisualBasicCompilationOptions, compilationOptionsBlobReader As BlobReader, emitOptions As EmitOptions, compilation As VisualBasicCompilation) 39Private Sub TestDeterministicCompilationVB(syntaxTrees As SyntaxTree(), compilationOptions As VisualBasicCompilationOptions, emitOptions As EmitOptions, ParamArray metadataReferences() As TestMetadataReferenceInfo) 74Public Sub PortablePdb_DeterministicCompilation(compilationOptions As VisualBasicCompilationOptions, emitOptions As EmitOptions) 117Public Sub PortablePdb_DeterministicCompilationWithSJIS(compilationOptions As VisualBasicCompilationOptions, emitOptions As EmitOptions) 164For Each emitOptions As EmitOptions In GetEmitOptions() 174Private Iterator Function GetEmitOptions() As IEnumerable(Of EmitOptions)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (1)
EEAssemblyBuilder.vb (1)
29emitOptions As EmitOptions,
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (3)
Compilation\CompilationAPITests.vb (3)
455Assert.Throws(Of ArgumentException)("pdbStream", Sub() comp.Emit(peStream:=New MemoryStream(), pdbStream:=New MemoryStream(), options:=EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.Embedded))) 460options:=EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb), 472options:=EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb),
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 (6)
BasicTestBase.vb (6)
41Optional emitOptions As EmitOptions = Nothing, 75Optional emitOptions As EmitOptions = Nothing, 105Optional emitOptions As EmitOptions = Nothing, 138Optional emitOptions As EmitOptions = Nothing, 178Optional emitOptions As EmitOptions = Nothing, 315Optional emitOptions As EmitOptions = Nothing,
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\SolutionCompilationState.SkeletonReferenceCache.cs (1)
76private static readonly EmitOptions s_metadataOnlyEmitOptions = new(
Roslyn.Test.PdbUtilities (3)
EditAndContinue\EditAndContinueTest.cs (1)
58emitOptions: EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb),
Reader\PdbValidation.cs (2)
527var emitOptions = EmitOptions.Default.WithDebugInformationFormat(portable ? DebugInformationFormat.PortablePdb : DebugInformationFormat.Pdb);