17 references to GetDocument
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
2491var doc = mdReader.GetDocument(handle);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
PDB\PDBEmbeddedSourceTests.cs (1)
122let document = pdbReader.GetDocument(documentHandle)
PDB\PortablePdbTests.cs (2)
192AssertEx.Equal(new[] { "goo.cs" }, mdReader.Documents.Select(doc => mdReader.GetString(mdReader.GetDocument(doc).Name))); 253AssertEx.Equal(new[] { "goo.cs" }, mdReader.Documents.Select(doc => mdReader.GetString(mdReader.GetDocument(doc).Name)));
PDB\TypeDefinitionDocumentTests.cs (1)
500var doc = pdbReader.GetDocument(MetadataTokens.DocumentHandle(documentRow));
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
PDB\MethodDebugInfo.Portable.cs (1)
70var document = reader.GetDocument(documentHandle);
Microsoft.CodeAnalysis.Features (3)
EditAndContinue\EditAndContinueMethodDebugInfoReader.cs (1)
159var document = _pdbReader.GetDocument(documentHandle);
PdbSourceDocument\DocumentDebugInfoReader.cs (2)
44var document = _pdbReader.GetDocument(handle); 62var document = _pdbReader.GetDocument(handle);
Microsoft.CodeAnalysis.Rebuild (2)
CompilationFactory.cs (1)
168var document = pdbReader.GetDocument(documentHandle);
CompilationOptionsReader.cs (1)
182var document = PdbReader.GetDocument(documentHandle);
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
CommandLineTests.vb (1)
3410Dim doc = mdReader.GetDocument(handle)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (3)
PDB\PortablePdbTests.vb (2)
100AssertEx.Equal({"goo.vb"}, mdReader.Documents.Select(Function(doc) mdReader.GetString(mdReader.GetDocument(doc).Name))) 154AssertEx.Equal({"goo.vb"}, mdReader.Documents.Select(Function(doc) mdReader.GetString(mdReader.GetDocument(doc).Name)))
PDB\TypeDefinitionDocumentTests.vb (1)
381Dim doc = pdbReader.GetDocument(MetadataTokens.DocumentHandle(documentRow))
System.Diagnostics.StackTrace (1)
System\Diagnostics\StackTraceSymbols.cs (1)
88sourceFile = reader.GetString(reader.GetDocument(bestPointSoFar.Value.Document).Name);
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (1)
25public static Document GetDocument(this DocumentHandle handle, MetadataReader reader) => reader.GetDocument(handle);