4 instantiations of DebugSourceDocument
Microsoft.CodeAnalysis (2)
Compilation\Compilation.cs (2)
2521
var document = new Cci.
DebugSourceDocument
(
2542
documentsBuilder.AddDebugDocument(new Cci.
DebugSourceDocument
(
Microsoft.CodeAnalysis.CSharp (2)
Compilation\CSharpCompilation.cs (1)
3898
var newDocument = new Cci.
DebugSourceDocument
(
Compiler\MethodCompiler.cs (1)
2479
return new Cci.
DebugSourceDocument
(normalizedPath, Cci.DebugSourceDocument.CorSymLanguageTypeCSharp);
81 references to DebugSourceDocument
Microsoft.CodeAnalysis (55)
CodeGen\DebugDocumentProvider.cs (1)
7
internal delegate Cci.
DebugSourceDocument
DebugDocumentProvider(string path, string basePath);
CodeGen\ILBuilderEmit.cs (1)
69
internal void EmitSourceDocumentIndexToken(Cci.
DebugSourceDocument
document)
CodeGen\SequencePointList.cs (1)
116
Cci.
DebugSourceDocument
lastDebugDocument = null;
Compilation\Compilation.cs (3)
2518
var
existingDoc = documentsBuilder.TryGetDebugDocumentForNormalizedPath(normalizedPath);
2521
var
document = new Cci.DebugSourceDocument(
2539
var
existingDoc = documentsBuilder.TryGetDebugDocumentForNormalizedPath(normalizedPath);
Emit\CommonPEModuleBuilder.cs (5)
42
private readonly ItemTokenMap<Cci.
DebugSourceDocument
> _sourceDocumentsInILMap = new();
317
public abstract MultiDictionary<Cci.
DebugSourceDocument
, Cci.DefinitionWithLocation> GetSymbolToLocationMap();
358
public abstract IEnumerable<(Cci.ITypeDefinition, ImmutableArray<Cci.
DebugSourceDocument
>)> GetTypeToDebugDocumentMap(EmitContext context);
484
public uint GetSourceDocumentIndexForIL(Cci.
DebugSourceDocument
document)
489
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)
32
private readonly Dictionary<
DebugSourceDocument
, int> _documentIndex;
48
_documentIndex = new Dictionary<
DebugSourceDocument
, int>();
590
private int GetDocumentIndex(
DebugSourceDocument
document)
600
private int AddDocumentIndex(
DebugSourceDocument
document)
667
DebugSourceDocument
lastDocument = null;
673
var
document = sequencePoint.Document;
701
public void AssertAllDefinitionsHaveTokens(MultiDictionary<
DebugSourceDocument
, DefinitionWithLocation> file2definitions)
714
public void WriteDefinitionLocations(MultiDictionary<
DebugSourceDocument
, DefinitionWithLocation> file2definitions)
778
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)
23
public readonly
DebugSourceDocument
Document;
26
DebugSourceDocument
document,
PEWriter\SourceSpan.cs (2)
19
public readonly Cci.
DebugSourceDocument
Document;
22
Cci.
DebugSourceDocument
document,
Microsoft.CodeAnalysis.CSharp (26)
Compilation\CSharpCompilation.cs (4)
3866
var
existingDoc = documentsBuilder.TryGetDebugDocumentForNormalizedPath(normalizedPath);
3898
var
newDocument = new Cci.DebugSourceDocument(
3900
Cci.
DebugSourceDocument
.CorSymLanguageTypeCSharp,
3948
internal override Guid DebugSourceDocumentLanguageId => Cci.
DebugSourceDocument
.CorSymLanguageTypeCSharp;
Compiler\MethodCompiler.cs (2)
2477
private static Cci.
DebugSourceDocument
CreateDebugDocumentForFile(string normalizedPath)
2479
return new Cci.DebugSourceDocument(normalizedPath, Cci.
DebugSourceDocument
.CorSymLanguageTypeCSharp);
Emitter\Model\PEModuleBuilder.cs (10)
216
public sealed override IEnumerable<(Cci.ITypeDefinition, ImmutableArray<Cci.
DebugSourceDocument
>)> GetTypeToDebugDocumentMap(EmitContext context)
219
var debugDocuments = ArrayBuilder<Cci.
DebugSourceDocument
>.GetInstance();
220
var methodDocumentList = PooledHashSet<Cci.
DebugSourceDocument
>.GetInstance();
268
var
debugDocument = DebugDocumentsBuilder.TryGetDebugDocument(span.Path, basePath: null);
302
private static void GetDocumentsForMethodsAndNestedTypes(PooledHashSet<Cci.
DebugSourceDocument
> documentList, ArrayBuilder<Cci.ITypeDefinition> typesToProcess, EmitContext context)
336
public sealed override MultiDictionary<Cci.
DebugSourceDocument
, Cci.DefinitionWithLocation> GetSymbolToLocationMap()
338
var result = new MultiDictionary<Cci.
DebugSourceDocument
, Cci.DefinitionWithLocation>();
441
private void AddSymbolLocation(MultiDictionary<Cci.
DebugSourceDocument
, Cci.DefinitionWithLocation> result, Symbol symbol)
450
private void AddSymbolLocation(MultiDictionary<Cci.
DebugSourceDocument
, Cci.DefinitionWithLocation> result, Location location, Cci.IDefinition definition)
454
Cci.
DebugSourceDocument
doc = DebugDocumentsBuilder.TryGetDebugDocument(span.Path, basePath: location.SourceTree.FilePath);
Generated\BoundNodes.xml.Generated.cs (4)
2661
public BoundSourceDocumentIndex(SyntaxNode syntax, Cci.
DebugSourceDocument
document, TypeSymbol type, bool hasErrors)
2671
public BoundSourceDocumentIndex(SyntaxNode syntax, Cci.
DebugSourceDocument
document, TypeSymbol type)
2682
public Cci.
DebugSourceDocument
Document { get; }
2687
public BoundSourceDocumentIndex Update(Cci.
DebugSourceDocument
document, TypeSymbol type)
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (5)
186
var
document = GetSourceDocument(debugDocumentProvider, methodBodySyntax);
191
var documents = PooledHashSet<
DebugSourceDocument
>.GetInstance();
196
var
document = span.Document;
476
private static Cci.
DebugSourceDocument
GetSourceDocument(DebugDocumentProvider debugDocumentProvider, SyntaxNode syntax)
481
private static Cci.
DebugSourceDocument
GetSourceDocument(DebugDocumentProvider debugDocumentProvider, SyntaxNode syntax, FileLinePositionSpan span)
Lowering\SyntheticBoundNodeFactory.cs (1)
1404
public BoundExpression SourceDocumentIndex(Cci.
DebugSourceDocument
document)