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