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