1 write to PeReader
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
56
PeReader
= peReader;
11 references to PeReader
Microsoft.CodeAnalysis.Rebuild (11)
CompilationFactory.cs (4)
105
var peHeader = OptionsReader.
PeReader
.PEHeaders.PEHeader!;
106
var win32Resources = OptionsReader.
PeReader
.GetSectionData(peHeader.ResourceTableDirectory.RelativeVirtualAddress);
134
var codeViewEntry = OptionsReader.
PeReader
.ReadDebugDirectory().Single(entry => entry.Type == DebugDirectoryEntryType.CodeView);
135
var codeView = OptionsReader.
PeReader
.ReadCodeViewDebugDirectoryData(codeViewEntry);
CompilationOptionsReader.cs (7)
144
var mdReader =
PeReader
.GetMetadataReader();
243
var metadataReader =
PeReader
.GetMetadataReader();
261
var metadataReader =
PeReader
.GetMetadataReader();
262
if (
PeReader
.PEHeaders.CorHeader is not { } corHeader
263
|| !
PeReader
.PEHeaders.TryGetDirectoryOffset(corHeader.ResourcesDirectory, out var resourcesOffset))
273
var resourceStart =
PeReader
.GetEntireImage().Pointer + resourcesOffset + resource.Offset;
444
public bool HasEmbeddedPdb =>
PeReader
.ReadDebugDirectory().Any(static entry => entry.Type == DebugDirectoryEntryType.EmbeddedPortablePdb);