2 types derived from DebugInformationReaderProvider
Microsoft.CodeAnalysis.Features (2)
Debugging\DebugInformationReaderProvider.cs (2)
42private sealed class Portable(MetadataReaderProvider pdbReaderProvider) : DebugInformationReaderProvider 65private sealed class Native(Stream stream, ISymUnmanagedReader5 symReader, int version) : DebugInformationReaderProvider
30 references to DebugInformationReaderProvider
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (6)
Debugging\DebugInformationReaderProviderTests.cs (4)
18Assert.Throws<ArgumentException>(() => DebugInformationReaderProvider.CreateFromStream(new TestStream(canRead: false, canSeek: true, canWrite: true))); 19Assert.Throws<ArgumentException>(() => DebugInformationReaderProvider.CreateFromStream(new TestStream(canRead: true, canSeek: false, canWrite: true))); 20Assert.Throws<ArgumentNullException>(() => DebugInformationReaderProvider.CreateFromStream(null)); 21Assert.Throws<ArgumentNullException>(() => DebugInformationReaderProvider.CreateFromMetadataReader(null));
Emit\CompilationOutputFilesTests.cs (1)
42using (var pdb = outputs.OpenPdb())
Emit\CompilationOutputsTests.cs (1)
78using (var pdb = outputs.OpenPdb())
Microsoft.CodeAnalysis.Features (20)
Debugging\DebugInformationReaderProvider.cs (5)
113/// Creates <see cref="DebugInformationReaderProvider"/> from a stream of Portable or Windows PDB. 124public static DebugInformationReaderProvider CreateFromStream(Stream stream) 149private static DebugInformationReaderProvider CreateNative(Stream stream) 158/// Creates <see cref="DebugInformationReaderProvider"/> from a Portable PDB metadata reader provider. 164public static DebugInformationReaderProvider CreateFromMetadataReader(MetadataReaderProvider metadataProvider)
EditAndContinue\CommittedSolution.cs (4)
396using var debugInfoReaderProvider = GetMethodDebugInfoReader(log, compilationOutputsProvider(project), project.Name); 437private static DebugInformationReaderProvider? GetMethodDebugInfoReader(TraceLog log, CompilationOutputs compilationOutputs, string projectName) 439DebugInformationReaderProvider? debugInfoReaderProvider; 517using var debugInfoReaderProvider = GetMethodDebugInfoReader(_debuggingSession.SessionLog, compilationOutputs, document.Project.Name);
EditAndContinue\DebuggingSession.cs (2)
328if (!TryCreateInitialBaseline(baselineCompilation, outputs, baselineProject.Id, diagnostics, out var initialBaseline, out var debugInfoReaderProvider, out var metadataReaderProvider)) 376[NotNullWhen(true)] out DebugInformationReaderProvider? debugInfoReaderProvider,
Emit\CompilationOutputFilesWithImplicitPdbPath.cs (3)
44public override DebugInformationReaderProvider? OpenPdb() 60return DebugInformationReaderProvider.CreateFromMetadataReader(peReader.ReadEmbeddedPortablePdbDebugDirectoryData(embeddedPdbEntry)); 77return (pdbStream != null) ? DebugInformationReaderProvider.CreateFromStream(pdbStream) : null;
Emit\CompilationOutputs.cs (6)
85/// The caller must dispose the returned <see cref="DebugInformationReaderProvider"/>. 88/// Instance of <see cref="DebugInformationReaderProvider"/>, which owns the opened PDB and must be disposed once the caller is done reading the data, 97public virtual DebugInformationReaderProvider? OpenPdb() 102return DebugInformationReaderProvider.CreateFromStream(pdbStream); 113return DebugInformationReaderProvider.CreateFromMetadataReader(peReader.ReadEmbeddedPortablePdbDebugDirectoryData(embeddedPdbEntry)); 168using var pdb = OpenPdb();
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (1)
487((DebugInformationReaderProvider)reader).CreateEditAndContinueMethodDebugInfoReader();
Microsoft.CodeAnalysis.Features.UnitTests (2)
EditAndContinue\EditAndContinueMethodDebugInfoReaderTests.cs (2)
72DebugInformationReaderProvider provider; 84provider = DebugInformationReaderProvider.CreateFromStream(pdbStream);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
ProjectSystemShim\VisualStudioCompilationOutputFilesTests.cs (1)
50using (var pdb = outputs.OpenPdb())