2 types derived from DebugInformationReaderProvider
Microsoft.CodeAnalysis.Features (2)
Debugging\DebugInformationReaderProvider.cs (2)
42private sealed class Portable : DebugInformationReaderProvider 68private sealed class Native : DebugInformationReaderProvider
30 references to DebugInformationReaderProvider
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (9)
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));
EditAndContinue\EditAndContinueMethodDebugInfoReaderTests.cs (2)
71DebugInformationReaderProvider provider; 83provider = DebugInformationReaderProvider.CreateFromStream(pdbStream);
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (1)
387((DebugInformationReaderProvider)reader).CreateEditAndContinueMethodDebugInfoReader();
Emit\CompilationOutputFilesTests.cs (1)
42using (var pdb = outputs.OpenPdb())
Emit\CompilationOutputsTests.cs (1)
79using (var pdb = outputs.OpenPdb())
Microsoft.CodeAnalysis.Features (20)
Debugging\DebugInformationReaderProvider.cs (5)
123/// Creates <see cref="DebugInformationReaderProvider"/> from a stream of Portable or Windows PDB. 134public static DebugInformationReaderProvider CreateFromStream(Stream stream) 159private static DebugInformationReaderProvider CreateNative(Stream stream) 168/// Creates <see cref="DebugInformationReaderProvider"/> from a Portable PDB metadata reader provider. 174public static DebugInformationReaderProvider CreateFromMetadataReader(MetadataReaderProvider metadataProvider)
EditAndContinue\CommittedSolution.cs (4)
367using var debugInfoReaderProvider = GetMethodDebugInfoReader(compilationOutputsProvider(project), project.Name); 408private static DebugInformationReaderProvider? GetMethodDebugInfoReader(CompilationOutputs compilationOutputs, string projectName) 410DebugInformationReaderProvider? debugInfoReaderProvider; 476using var debugInfoReaderProvider = GetMethodDebugInfoReader(compilationOutputs, document.Project.Name);
EditAndContinue\DebuggingSession.cs (2)
335if (!TryCreateInitialBaseline(outputs, project.Id, out diagnostics, out var initialBaseline, out var debugInfoReaderProvider, out var metadataReaderProvider)) 372[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)); 168var pdb = OpenPdb();
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
ProjectSystemShim\VisualStudioCompilationOutputFilesTests.cs (1)
53using (var pdb = outputs.OpenPdb())