2 instantiations of DebugSourceDocument
Microsoft.CodeAnalysis (2)
Compilation\Compilation.cs (2)
2520var document = new Cci.DebugSourceDocument( 2541documentsBuilder.AddDebugDocument(new Cci.DebugSourceDocument(
59 references to DebugSourceDocument
Microsoft.CodeAnalysis (56)
CodeGen\DebugDocumentProvider.cs (1)
7internal delegate Cci.DebugSourceDocument DebugDocumentProvider(string path, string basePath);
CodeGen\ILBuilderEmit.cs (1)
77internal void EmitSourceDocumentIndexToken(Cci.DebugSourceDocument document)
CodeGen\ITokenDeferral.cs (1)
14uint GetSourceDocumentIndexForIL(Cci.DebugSourceDocument document);
CodeGen\SequencePointList.cs (1)
116Cci.DebugSourceDocument lastDebugDocument = null;
Compilation\Compilation.cs (3)
2517var existingDoc = documentsBuilder.TryGetDebugDocumentForNormalizedPath(normalizedPath); 2520var document = new Cci.DebugSourceDocument( 2538var existingDoc = documentsBuilder.TryGetDebugDocumentForNormalizedPath(normalizedPath);
Emit\CommonPEModuleBuilder.cs (5)
40private readonly ItemTokenMap<Cci.DebugSourceDocument> _sourceDocumentsInILMap = new(); 248public abstract MultiDictionary<Cci.DebugSourceDocument, Cci.DefinitionWithLocation> GetSymbolToLocationMap(); 289public abstract IEnumerable<(Cci.ITypeDefinition, ImmutableArray<Cci.DebugSourceDocument>)> GetTypeToDebugDocumentMap(EmitContext context); 415public uint GetSourceDocumentIndexForIL(Cci.DebugSourceDocument document) 420internal Cci.DebugSourceDocument GetSourceDocumentFromIndex(uint token)
Emit\DebugDocumentsBuilder.cs (9)
20private readonly ConcurrentDictionary<string, Cci.DebugSourceDocument> _debugDocuments; 28_debugDocuments = new ConcurrentDictionary<string, Cci.DebugSourceDocument>( 38internal void AddDebugDocument(Cci.DebugSourceDocument document) 43internal IReadOnlyDictionary<string, Cci.DebugSourceDocument> DebugDocuments 46internal Cci.DebugSourceDocument? TryGetDebugDocument(string path, string? basePath) 51internal Cci.DebugSourceDocument? TryGetDebugDocumentForNormalizedPath(string normalizedPath) 53Cci.DebugSourceDocument? document; 58internal Cci.DebugSourceDocument GetOrAddDebugDocument(string path, string basePath, Func<string, Cci.DebugSourceDocument> factory)
NativePdbWriter\PdbWriter.cs (9)
33private readonly Dictionary<DebugSourceDocument, int> _documentIndex; 49_documentIndex = new Dictionary<DebugSourceDocument, int>(); 591private int GetDocumentIndex(DebugSourceDocument document) 601private int AddDocumentIndex(DebugSourceDocument document) 668DebugSourceDocument lastDocument = null; 674var document = sequencePoint.Document; 702public void AssertAllDefinitionsHaveTokens(MultiDictionary<DebugSourceDocument, DefinitionWithLocation> file2definitions) 715public void WriteDefinitionLocations(MultiDictionary<DebugSourceDocument, DefinitionWithLocation> file2definitions) 779public void WriteRemainingDebugDocuments(IReadOnlyDictionary<string, DebugSourceDocument> documents)
PEWriter\DebugSourceInfo.cs (1)
12/// Represents the portion of a <see cref="DebugSourceDocument"/> that are derived
PEWriter\MetadataWriter.DynamicAnalysis.cs (8)
44private readonly Dictionary<DebugSourceDocument, int> _documentIndex; 58_documentIndex = new Dictionary<DebugSourceDocument, int>(documentCountEstimate); 126Dictionary<DebugSourceDocument, int> documentIndex) 138DebugSourceDocument previousDocument = spans[0].Document; 145var currentDocument = spans[i].Document; 200internal int GetOrAddDocument(DebugSourceDocument document) 205private int GetOrAddDocument(DebugSourceDocument document, Dictionary<DebugSourceDocument, int> index)
PEWriter\MetadataWriter.PortablePdb.cs (13)
54private readonly Dictionary<DebugSourceDocument, DocumentHandle> _documentIndex = new Dictionary<DebugSourceDocument, DocumentHandle>(); 629Dictionary<DebugSourceDocument, DocumentHandle> documentIndex, 646var previousDocument = TryGetSingleDocument(sequencePoints); 651var currentDocument = sequencePoints[i].Document; 705private static DebugSourceDocument TryGetSingleDocument(ImmutableArray<SequencePoint> sequencePoints) 707DebugSourceDocument singleDocument = sequencePoints[0].Document; 743private DocumentHandle GetOrAddDocument(DebugSourceDocument document, Dictionary<DebugSourceDocument, DocumentHandle> index) 753private DocumentHandle AddDocument(DebugSourceDocument document, Dictionary<DebugSourceDocument, DocumentHandle> index) 792public void AddRemainingDebugDocuments(IReadOnlyDictionary<string, DebugSourceDocument> documents) 1022foreach (var document in documents)
PEWriter\SequencePoint.cs (2)
22public readonly DebugSourceDocument Document; 25DebugSourceDocument document,
PEWriter\SourceSpan.cs (2)
19public readonly Cci.DebugSourceDocument Document; 22Cci.DebugSourceDocument document,
Microsoft.CodeAnalysis.CSharp (3)
Compilation\CSharpCompilation.cs (1)
3798var existingDoc = documentsBuilder.TryGetDebugDocumentForNormalizedPath(normalizedPath);
Emitter\Model\PEModuleBuilder.cs (1)
268var debugDocument = DebugDocumentsBuilder.TryGetDebugDocument(span.Path, basePath: null);
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (1)
196var document = span.Document;