1 write to Type
System.Reflection.Metadata (1)
System\Reflection\PortableExecutable\DebugDirectory\DebugDirectoryEntry.cs (1)
79Type = type;
34 references to Type
BuildValidator (7)
CompilationDiff.cs (7)
392writer.WriteLine($"\ttype:{debugDirectory.Type} dataSize:{debugDirectory.DataSize} dataPointer:{debugDirectory.DataPointer} dataRelativeVirtualAddress:{debugDirectory.DataRelativeVirtualAddress}"); 422var originalEntry = originalInfo.AssemblyReader.ReadDebugDirectory().SingleOrDefault(x => x.Type == DebugDirectoryEntryType.EmbeddedPortablePdb); 423var rebuildEntry = rebuildInfo.AssemblyReader.ReadDebugDirectory().SingleOrDefault(x => x.Type == DebugDirectoryEntryType.EmbeddedPortablePdb); 424if (originalEntry.Type == DebugDirectoryEntryType.Unknown && rebuildEntry.Type == DebugDirectoryEntryType.Unknown) 429var originalMissingEmbeddedPdb = originalEntry.Type == DebugDirectoryEntryType.Unknown; 430if (originalMissingEmbeddedPdb || rebuildEntry.Type == DebugDirectoryEntryType.Unknown)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
2258var entry = peReader.ReadDebugDirectory().Single(e => e.Type == DebugDirectoryEntryType.EmbeddedPortablePdb); 2480var entry = peReader.ReadDebugDirectory().SingleOrDefault(e => e.Type == DebugDirectoryEntryType.EmbeddedPortablePdb);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Emit\CompilationEmitTests.cs (1)
2624AssertEx.Equal(expected, entries.Select(e => e.Type));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (6)
PDB\CSharpDeterministicBuildCompilationTests.cs (1)
74AssertEx.Equal(new[] { DebugDirectoryEntryType.CodeView, DebugDirectoryEntryType.PdbChecksum, DebugDirectoryEntryType.Reproducible, DebugDirectoryEntryType.EmbeddedPortablePdb }, entries.Select(e => e.Type));
PDB\PDBEmbeddedSourceTests.cs (1)
114var embeddedEntry = peReader.ReadDebugDirectory().Single(e => e.Type == DebugDirectoryEntryType.EmbeddedPortablePdb);
PDB\PDBSourceLinkTests.cs (1)
87var embeddedEntry = peReader.ReadDebugDirectory().Single(e => e.Type == DebugDirectoryEntryType.EmbeddedPortablePdb);
PDB\PortablePdbTests.cs (3)
177AssertEx.Equal(new[] { DebugDirectoryEntryType.CodeView, DebugDirectoryEntryType.PdbChecksum, DebugDirectoryEntryType.EmbeddedPortablePdb }, entries.Select(e => e.Type)); 237AssertEx.Equal(new[] { DebugDirectoryEntryType.CodeView, DebugDirectoryEntryType.PdbChecksum, DebugDirectoryEntryType.Reproducible, DebugDirectoryEntryType.EmbeddedPortablePdb }, entries.Select(e => e.Type)); 348var embeddedEntry = peReader.ReadDebugDirectory().Single(e => e.Type == DebugDirectoryEntryType.EmbeddedPortablePdb);
Microsoft.CodeAnalysis.Features (3)
Emit\CompilationOutputFilesWithImplicitPdbPath.cs (2)
57var embeddedPdbEntry = debugDirectory.FirstOrDefault(e => e.Type == DebugDirectoryEntryType.EmbeddedPortablePdb); 63var codeViewEntry = debugDirectory.FirstOrDefault(e => e.Type == DebugDirectoryEntryType.CodeView);
Emit\CompilationOutputs.cs (1)
110var embeddedPdbEntry = peReader.ReadDebugDirectory().FirstOrDefault(e => e.Type == DebugDirectoryEntryType.EmbeddedPortablePdb);
Microsoft.CodeAnalysis.Rebuild (4)
CompilationFactory.cs (1)
134var codeViewEntry = OptionsReader.PeReader.ReadDebugDirectory().Single(entry => entry.Type == DebugDirectoryEntryType.CodeView);
CompilationOptionsReader.cs (1)
444public bool HasEmbeddedPdb => PeReader.ReadDebugDirectory().Any(static entry => entry.Type == DebugDirectoryEntryType.EmbeddedPortablePdb);
Extensions.cs (2)
26var entry = peReader.ReadDebugDirectory().SingleOrDefault(x => x.Type == DebugDirectoryEntryType.EmbeddedPortablePdb); 27if (entry.Type == DebugDirectoryEntryType.Unknown)
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\IRuntimeEnvironment.cs (1)
57DebugDirectoryEntry portablePdbEntry = peReader.ReadDebugDirectory().FirstOrDefault(e => e.Type == DebugDirectoryEntryType.EmbeddedPortablePdb);
Microsoft.VisualStudio.LanguageServices (2)
PdbSourceDocument\AbstractSourceLinkService.cs (2)
26if (entry.Type == DebugDirectoryEntryType.PdbChecksum) 31else if (entry.Type == DebugDirectoryEntryType.CodeView && entry.IsPortableCodeView)
Microsoft.VisualStudio.LanguageServices.DevKit (2)
src\VisualStudio\Core\Def\PdbSourceDocument\AbstractSourceLinkService.cs (2)
26if (entry.Type == DebugDirectoryEntryType.PdbChecksum) 31else if (entry.Type == DebugDirectoryEntryType.CodeView && entry.IsPortableCodeView)
Roslyn.Test.PdbUtilities (1)
Reader\PdbValidation.cs (1)
623Assert.Equal(DebugDirectoryEntryType.Reproducible, entry.Type);
System.Diagnostics.StackTrace (1)
System\Diagnostics\StackTraceSymbols.cs (1)
206if (entry.Type == DebugDirectoryEntryType.EmbeddedPortablePdb)
System.Reflection.Metadata (4)
System\Reflection\PortableExecutable\PEReader.cs (3)
608if (entry.Type != DebugDirectoryEntryType.CodeView) 648if (entry.Type != DebugDirectoryEntryType.PdbChecksum) 749var embeddedPdbEntry = ImmutableArrayExtensions.FirstOrDefault(entries, e => e.Type == DebugDirectoryEntryType.EmbeddedPortablePdb);
System\Reflection\PortableExecutable\PEReader.EmbeddedPortablePdb.cs (1)
36if (entry.Type != DebugDirectoryEntryType.EmbeddedPortablePdb)