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