1 write to _debugMetadataOpt
Microsoft.CodeAnalysis (1)
PEWriter\MetadataWriter.cs (1)
121_debugMetadataOpt = debugMetadataOpt;
75 references to _debugMetadataOpt
Microsoft.CodeAnalysis (75)
Emit\EditAndContinue\DeltaMetadataWriter.cs (2)
1319if (_debugMetadataOpt != null) 1330_debugMetadataOpt.AddEncMapEntry(token);
PEWriter\MetadataWriter.cs (4)
435internal bool EmitPortableDebugMetadata => _debugMetadataOpt != null; 1785if (_debugMetadataOpt != null) 1867return new PortablePdbBuilder(_debugMetadataOpt, typeSystemRowCounts, debugEntryPoint, deterministicIdProviderOpt); 2978if (_debugMetadataOpt != null)
PEWriter\MetadataWriter.PortablePdb.cs (69)
61_debugMetadataOpt.AddMethodDebugInformation(document: default, sequencePoints: default); 72_debugMetadataOpt.AddMethodDebugInformation(document: singleDocumentHandle, sequencePoints: sequencePointsBlob); 85_debugMetadataOpt.AddLocalScope( 97_debugMetadataOpt.AddLocalScope( 109lastLocalVariableHandle = _debugMetadataOpt.AddLocalVariable( 112name: _debugMetadataOpt.GetOrAddString(local.Name)); 122lastLocalConstantHandle = _debugMetadataOpt.AddLocalConstant( 123name: _debugMetadataOpt.GetOrAddString(constant.Name), 134_debugMetadataOpt.AddStateMachineMethod( 146_debugMetadataOpt.AddCustomDebugInformation( 148kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.PrimaryConstructorInformationBlob), 236return _debugMetadataOpt.GetOrAddBlob(builder); 328writer.WriteCompressedInteger(MetadataTokens.GetHeapOffset(_debugMetadataOpt.GetOrAddBlobUTF8(alias.Name))); 342writer.WriteCompressedInteger(MetadataTokens.GetHeapOffset(_debugMetadataOpt.GetOrAddBlobUTF8(import.AliasOpt))); 343writer.WriteCompressedInteger(MetadataTokens.GetHeapOffset(_debugMetadataOpt.GetOrAddBlobUTF8(import.TargetXmlNamespaceOpt))); 354writer.WriteCompressedInteger(MetadataTokens.GetHeapOffset(_debugMetadataOpt.GetOrAddBlobUTF8(import.AliasOpt))); 372writer.WriteCompressedInteger(MetadataTokens.GetHeapOffset(_debugMetadataOpt.GetOrAddBlobUTF8(import.AliasOpt))); 388writer.WriteCompressedInteger(MetadataTokens.GetHeapOffset(_debugMetadataOpt.GetOrAddBlobUTF8(import.AliasOpt))); 399writer.WriteCompressedInteger(MetadataTokens.GetHeapOffset(_debugMetadataOpt.GetOrAddBlobUTF8(namespaceName))); 408writer.WriteCompressedInteger(MetadataTokens.GetHeapOffset(_debugMetadataOpt.GetOrAddBlobUTF8(import.AliasOpt))); 429var rid = _debugMetadataOpt.AddImportScope( 431imports: _debugMetadataOpt.GetOrAddBlob(writer)); 448var result = _debugMetadataOpt.AddImportScope( 465return _debugMetadataOpt.GetOrAddBlob(writer); 477_debugMetadataOpt.AddCustomDebugInformation( 479kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.DefaultNamespace), 480value: _debugMetadataOpt.GetOrAddBlobUTF8(module.DefaultNamespace)); 494_debugMetadataOpt.AddCustomDebugInformation( 496kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.DynamicLocalVariables), 497value: _debugMetadataOpt.GetOrAddBlob(value)); 506_debugMetadataOpt.AddCustomDebugInformation( 508kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.TupleElementNames), 509value: _debugMetadataOpt.GetOrAddBlob(builder)); 594_debugMetadataOpt.AddCustomDebugInformation( 596kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.AsyncMethodSteppingInformationBlob), 597value: _debugMetadataOpt.GetOrAddBlob(writer)); 616_debugMetadataOpt.AddCustomDebugInformation( 618kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.StateMachineHoistedLocalScopes), 619value: _debugMetadataOpt.GetOrAddBlob(writer)); 702return _debugMetadataOpt.GetOrAddBlobAndFree(writer); 766documentHandle = _debugMetadataOpt.AddDocument( 767name: _debugMetadataOpt.GetOrAddDocumentName(name), 768hashAlgorithm: info.Checksum.IsDefault ? default(GuidHandle) : _debugMetadataOpt.GetOrAddGuid(info.ChecksumAlgorithmId), 769hash: info.Checksum.IsDefault ? default(BlobHandle) : _debugMetadataOpt.GetOrAddBlob(info.Checksum), 770language: _debugMetadataOpt.GetOrAddGuid(document.Language)); 776_debugMetadataOpt.AddCustomDebugInformation( 778kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.EmbeddedSource), 779value: _debugMetadataOpt.GetOrAddBlob(info.EmbeddedTextBlob)); 816_debugMetadataOpt.AddCustomDebugInformation( 818kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.EncLocalSlotMap), 819value: _debugMetadataOpt.GetOrAddBlobAndFree(writer)); 828_debugMetadataOpt.AddCustomDebugInformation( 830kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.EncLambdaAndClosureMap), 831value: _debugMetadataOpt.GetOrAddBlobAndFree(writer)); 840_debugMetadataOpt.AddCustomDebugInformation( 842kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.EncStateMachineStateMap), 843value: _debugMetadataOpt.GetOrAddBlobAndFree(writer)); 862_debugMetadataOpt.AddCustomDebugInformation( 864kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.SourceLink), 865value: _debugMetadataOpt.GetOrAddBlob(bytes)); 932_debugMetadataOpt.AddCustomDebugInformation( 934kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.CompilationOptions), 935value: _debugMetadataOpt.GetOrAddBlob(builder)); 1010_debugMetadataOpt.AddCustomDebugInformation( 1012kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.CompilationMetadataReferences), 1013value: _debugMetadataOpt.GetOrAddBlob(builder)); 1027_debugMetadataOpt.AddCustomDebugInformation( 1029kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.TypeDefinitionDocuments), 1030value: _debugMetadataOpt.GetOrAddBlob(builder));