2 writes to DebugInformationFormat
Microsoft.CodeAnalysis (2)
Emit\EmitOptions.cs (2)
235DebugInformationFormat = (debugInformationFormat == 0) ? DebugInformationFormat.Pdb : debugInformationFormat; 447return new EmitOptions(this) { DebugInformationFormat = format };
58 references to DebugInformationFormat
Microsoft.CodeAnalysis (14)
CommandLine\CommandLineArguments.cs (1)
356=> EmitPdb && EmitOptions.DebugInformationFormat != DebugInformationFormat.Embedded;
Compilation\Compilation.cs (4)
2785if (options?.DebugInformationFormat == DebugInformationFormat.Embedded) 2817if (options?.DebugInformationFormat == DebugInformationFormat.Embedded && 2851options?.DebugInformationFormat != DebugInformationFormat.Embedded) 2893bool embedPdb = options.DebugInformationFormat == DebugInformationFormat.Embedded;
Compilation\DeterministicKeyBuilder.cs (1)
413writer.Write("debugInformationFormat", options.DebugInformationFormat);
Emit\CommonPEModuleBuilder.cs (1)
70internal DebugInformationFormat DebugInformationFormat => EmitOptions.DebugInformationFormat;
Emit\EmitOptions.cs (7)
253other.DebugInformationFormat, 291DebugInformationFormat == other.DebugInformationFormat && 310Hash.Combine((int)DebugInformationFormat, 334if (!DebugInformationFormat.IsValid()) 336diagnostics.Add(messageProvider.CreateDiagnostic(messageProvider.ERR_InvalidDebugInformationFormat, Location.None, (int)DebugInformationFormat)); 442if (DebugInformationFormat == format)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (19)
CommandLineTests.cs (19)
1904Assert.Equal(parsedArgs.EmitOptions.DebugInformationFormat, platformPdbKind); 1911Assert.Equal(parsedArgs.EmitOptions.DebugInformationFormat, platformPdbKind); 1918Assert.Equal(parsedArgs.EmitOptions.DebugInformationFormat, platformPdbKind); 1925Assert.Equal(parsedArgs.EmitOptions.DebugInformationFormat, platformPdbKind); 1932Assert.Equal(parsedArgs.EmitOptions.DebugInformationFormat, platformPdbKind); 1938Assert.Equal(parsedArgs.EmitOptions.DebugInformationFormat, platformPdbKind); 1944Assert.Equal(parsedArgs.EmitOptions.DebugInformationFormat, platformPdbKind); 1951Assert.Equal(parsedArgs.EmitOptions.DebugInformationFormat, platformPdbKind); 1957Assert.Equal(DebugInformationFormat.PortablePdb, parsedArgs.EmitOptions.DebugInformationFormat); 1964Assert.Equal(DebugInformationFormat.Embedded, parsedArgs.EmitOptions.DebugInformationFormat); 1971Assert.Equal(parsedArgs.EmitOptions.DebugInformationFormat, platformPdbKind); 1977Assert.Equal(parsedArgs.EmitOptions.DebugInformationFormat, platformPdbKind); 1983Assert.Equal(platformPdbKind, parsedArgs.EmitOptions.DebugInformationFormat); 1989Assert.Equal(platformPdbKind, parsedArgs.EmitOptions.DebugInformationFormat); 1995Assert.Equal(platformPdbKind, parsedArgs.EmitOptions.DebugInformationFormat); 2001Assert.Equal(platformPdbKind, parsedArgs.EmitOptions.DebugInformationFormat); 2007Assert.Equal(DebugInformationFormat.Embedded, parsedArgs.EmitOptions.DebugInformationFormat); 2013Assert.Equal(DebugInformationFormat.Embedded, parsedArgs.EmitOptions.DebugInformationFormat); 12101VerifyQuotedValid("debug", tuple.Item1, tuple.Item2, x => x.EmitOptions.DebugInformationFormat);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Emit\DeterministicTests.cs (1)
496pdbStream: optEmit.DebugInformationFormat != DebugInformationFormat.Embedded ? streamPdb : null,
Microsoft.CodeAnalysis.Rebuild.UnitTests (2)
RoundTripUtil.cs (2)
136switch (emitOptions.DebugInformationFormat) 159throw new ArgumentException("Unsupported DebugInformationFormat: " + emitOptions.DebugInformationFormat);
Microsoft.CodeAnalysis.Test.Utilities (3)
Compilation\CompilationExtensions.cs (2)
64if (pdbStream == null && compilation.Options.OptimizationLevel == OptimizationLevel.Debug && options?.DebugInformationFormat != DebugInformationFormat.Embedded) 71var discretePdb = (object)options != null && options.DebugInformationFormat != DebugInformationFormat.Embedded;
Compilation\IRuntimeEnvironment.cs (1)
248var pdbStream = (emitOptions.DebugInformationFormat != DebugInformationFormat.Embedded) ? new MemoryStream() : null;
Microsoft.CodeAnalysis.UnitTests (2)
Emit\EmitOptionsTests.cs (2)
63TestProperty((old, value) => old.WithDebugInformationFormat(value), opt => opt.DebugInformationFormat, 86nameof(EmitOptions.DebugInformationFormat),
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (17)
CommandLineTests.vb (17)
3042Assert.Equal(parsedArgs.EmitOptions.DebugInformationFormat, platformPdbKind) 3047Assert.Equal(parsedArgs.EmitOptions.DebugInformationFormat, platformPdbKind) 3052Assert.Equal(parsedArgs.EmitOptions.DebugInformationFormat, platformPdbKind) 3057Assert.Equal(parsedArgs.EmitOptions.DebugInformationFormat, platformPdbKind) 3062Assert.Equal(parsedArgs.EmitOptions.DebugInformationFormat, platformPdbKind) 3067Assert.Equal(parsedArgs.EmitOptions.DebugInformationFormat, platformPdbKind) 3072Assert.Equal(parsedArgs.EmitOptions.DebugInformationFormat, platformPdbKind) 3077Assert.Equal(parsedArgs.EmitOptions.DebugInformationFormat, DebugInformationFormat.PortablePdb) 3082Assert.Equal(parsedArgs.EmitOptions.DebugInformationFormat, DebugInformationFormat.Embedded) 3087Assert.Equal(parsedArgs.EmitOptions.DebugInformationFormat, platformPdbKind) 3092Assert.Equal(parsedArgs.EmitOptions.DebugInformationFormat, platformPdbKind) 3097Assert.Equal(platformPdbKind, parsedArgs.EmitOptions.DebugInformationFormat) 3102Assert.Equal(platformPdbKind, parsedArgs.EmitOptions.DebugInformationFormat) 3107Assert.Equal(platformPdbKind, parsedArgs.EmitOptions.DebugInformationFormat) 3112Assert.Equal(platformPdbKind, parsedArgs.EmitOptions.DebugInformationFormat) 3117Assert.Equal(DebugInformationFormat.Embedded, parsedArgs.EmitOptions.DebugInformationFormat) 3122Assert.Equal(DebugInformationFormat.Embedded, parsedArgs.EmitOptions.DebugInformationFormat)