6 instantiations of DebugSourceDocument
Microsoft.CodeAnalysis (2)
Compilation\Compilation.cs (2)
2468
var document = new Cci.
DebugSourceDocument
(
2489
documentsBuilder.AddDebugDocument(new Cci.
DebugSourceDocument
(
Microsoft.CodeAnalysis.CSharp (2)
Compilation\CSharpCompilation.cs (1)
3537
var newDocument = new Cci.
DebugSourceDocument
(
Compiler\MethodCompiler.cs (1)
2307
return new Cci.
DebugSourceDocument
(normalizedPath, Cci.DebugSourceDocument.CorSymLanguageTypeCSharp);
Microsoft.CodeAnalysis.VisualBasic (2)
Compilation\MethodCompiler.vb (1)
2095
Return New Cci.
DebugSourceDocument
(normalizedPath, Cci.DebugSourceDocument.CorSymLanguageTypeBasic)
Compilation\VisualBasicCompilation.vb (1)
2634
Dim newDocument = New
DebugSourceDocument
(
104 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)
2465
var
existingDoc = documentsBuilder.TryGetDebugDocumentForNormalizedPath(normalizedPath);
2468
var
document = new Cci.DebugSourceDocument(
2486
var
existingDoc = documentsBuilder.TryGetDebugDocumentForNormalizedPath(normalizedPath);
Emit\CommonPEModuleBuilder.cs (5)
40
private readonly ItemTokenMap<Cci.
DebugSourceDocument
> _sourceDocumentsInILMap = new();
213
public abstract MultiDictionary<Cci.
DebugSourceDocument
, Cci.DefinitionWithLocation> GetSymbolToLocationMap();
254
public abstract IEnumerable<(Cci.ITypeDefinition, ImmutableArray<Cci.
DebugSourceDocument
>)> GetTypeToDebugDocumentMap(EmitContext context);
374
public uint GetSourceDocumentIndexForIL(Cci.
DebugSourceDocument
document)
379
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>();
577
private int GetDocumentIndex(
DebugSourceDocument
document)
587
private int AddDocumentIndex(
DebugSourceDocument
document)
654
DebugSourceDocument
lastDocument = null;
660
var
document = sequencePoint.Document;
688
public void AssertAllDefinitionsHaveTokens(MultiDictionary<
DebugSourceDocument
, DefinitionWithLocation> file2definitions)
701
public void WriteDefinitionLocations(MultiDictionary<
DebugSourceDocument
, DefinitionWithLocation> file2definitions)
765
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 (26)
Compilation\CSharpCompilation.cs (4)
3505
var
existingDoc = documentsBuilder.TryGetDebugDocumentForNormalizedPath(normalizedPath);
3537
var
newDocument = new Cci.DebugSourceDocument(
3539
Cci.
DebugSourceDocument
.CorSymLanguageTypeCSharp,
3587
internal override Guid DebugSourceDocumentLanguageId => Cci.
DebugSourceDocument
.CorSymLanguageTypeCSharp;
Compiler\MethodCompiler.cs (2)
2305
private static Cci.
DebugSourceDocument
CreateDebugDocumentForFile(string normalizedPath)
2307
return new Cci.DebugSourceDocument(normalizedPath, Cci.
DebugSourceDocument
.CorSymLanguageTypeCSharp);
Emitter\Model\PEModuleBuilder.cs (10)
214
public sealed override IEnumerable<(Cci.ITypeDefinition, ImmutableArray<Cci.
DebugSourceDocument
>)> GetTypeToDebugDocumentMap(EmitContext context)
217
var debugDocuments = ArrayBuilder<Cci.
DebugSourceDocument
>.GetInstance();
218
var methodDocumentList = PooledHashSet<Cci.
DebugSourceDocument
>.GetInstance();
266
var
debugDocument = DebugDocumentsBuilder.TryGetDebugDocument(span.Path, basePath: null);
300
private static void GetDocumentsForMethodsAndNestedTypes(PooledHashSet<Cci.
DebugSourceDocument
> documentList, ArrayBuilder<Cci.ITypeDefinition> typesToProcess, EmitContext context)
329
public sealed override MultiDictionary<Cci.
DebugSourceDocument
, Cci.DefinitionWithLocation> GetSymbolToLocationMap()
331
var result = new MultiDictionary<Cci.
DebugSourceDocument
, Cci.DefinitionWithLocation>();
434
private void AddSymbolLocation(MultiDictionary<Cci.
DebugSourceDocument
, Cci.DefinitionWithLocation> result, Symbol symbol)
443
private void AddSymbolLocation(MultiDictionary<Cci.
DebugSourceDocument
, Cci.DefinitionWithLocation> result, Location location, Cci.IDefinition definition)
447
Cci.
DebugSourceDocument
doc = DebugDocumentsBuilder.TryGetDebugDocument(span.Path, basePath: location.SourceTree.FilePath);
Generated\BoundNodes.xml.Generated.cs (4)
2556
public BoundSourceDocumentIndex(SyntaxNode syntax, Cci.
DebugSourceDocument
document, TypeSymbol type, bool hasErrors)
2566
public BoundSourceDocumentIndex(SyntaxNode syntax, Cci.
DebugSourceDocument
document, TypeSymbol type)
2577
public Cci.
DebugSourceDocument
Document { get; }
2582
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)
1293
public BoundExpression SourceDocumentIndex(Cci.
DebugSourceDocument
document)
Microsoft.CodeAnalysis.VisualBasic (22)
Compilation\MethodCompiler.vb (2)
2094
Private Shared Function CreateDebugDocumentForFile(normalizedPath As String) As Cci.
DebugSourceDocument
2095
Return New Cci.DebugSourceDocument(normalizedPath, Cci.
DebugSourceDocument
.CorSymLanguageTypeBasic)
Compilation\VisualBasicCompilation.vb (2)
2636
DebugSourceDocument
.CorSymLanguageTypeBasic,
2679
Return
DebugSourceDocument
.CorSymLanguageTypeBasic
Emit\PEModuleBuilder.vb (9)
197
Public NotOverridable Overrides Function GetSymbolToLocationMap() As MultiDictionary(Of Cci.
DebugSourceDocument
, Cci.DefinitionWithLocation)
198
Dim result As New MultiDictionary(Of Cci.
DebugSourceDocument
, Cci.DefinitionWithLocation)()
272
Private Sub AddSymbolLocation(result As MultiDictionary(Of Cci.
DebugSourceDocument
, Cci.DefinitionWithLocation), symbol As Symbol)
279
Private Sub AddSymbolLocation(result As MultiDictionary(Of Cci.
DebugSourceDocument
, Cci.DefinitionWithLocation), location As Location, definition As Cci.IDefinition)
282
Dim doc As Cci.
DebugSourceDocument
= DebugDocumentsBuilder.TryGetDebugDocument(span.Path, basePath:=location.SourceTree.FilePath)
644
Public Overrides Iterator Function GetTypeToDebugDocumentMap(context As EmitContext) As IEnumerable(Of (Cci.ITypeDefinition, ImmutableArray(Of Cci.
DebugSourceDocument
)))
646
Dim debugDocuments = ArrayBuilder(Of Cci.
DebugSourceDocument
).GetInstance()
647
Dim methodDocumentList = PooledHashSet(Of Cci.
DebugSourceDocument
).GetInstance()
716
Private Shared Sub GetDocumentsForMethodsAndNestedTypes(documentList As PooledHashSet(Of Cci.
DebugSourceDocument
), typesToProcess As ArrayBuilder(Of Cci.ITypeDefinition), context As EmitContext)
Generated\BoundNodes.xml.Generated.vb (5)
1314
Public Sub New(syntax As SyntaxNode, document As Cci.
DebugSourceDocument
, type As TypeSymbol, hasErrors As Boolean)
1323
Public Sub New(syntax As SyntaxNode, document As Cci.
DebugSourceDocument
, type As TypeSymbol)
1333
Private ReadOnly _Document As Cci.
DebugSourceDocument
1334
Public ReadOnly Property Document As Cci.
DebugSourceDocument
1345
Public Function Update(document As Cci.
DebugSourceDocument
, type As TypeSymbol) As BoundSourceDocumentIndex
Lowering\Instrumentation\CodeCoverageInstrumenter.vb (3)
193
Dim documents = PooledHashSet(Of
DebugSourceDocument
).GetInstance()
435
Private Shared Function GetSourceDocument(debugDocumentProvider As DebugDocumentProvider, syntax As SyntaxNode) As Cci.
DebugSourceDocument
439
Private Shared Function GetSourceDocument(debugDocumentProvider As DebugDocumentProvider, syntax As SyntaxNode, span As FileLinePositionSpan) As Cci.
DebugSourceDocument
Lowering\SyntheticBoundNodeFactory.vb (1)
974
Public Function SourceDocumentIndex(document As Cci.
DebugSourceDocument
) As BoundExpression