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