63 references to CustomDebugInfoKind
Microsoft.CodeAnalysis (24)
CustomDebugInfoEncoder.cs (9)
60
CustomDebugInfoKind
.StateMachineTypeName,
72
CustomDebugInfoKind
.ForwardMethodInfo,
80
CustomDebugInfoKind
.ForwardModuleInfo,
97
CustomDebugInfoKind
.UsingGroups,
118
CustomDebugInfoKind
.StateMachineHoistedLocalScopes,
148
CustomDebugInfoKind
.DynamicLocals,
174
CustomDebugInfoKind
.TupleElementNames,
212
CustomDebugInfoKind
kind,
233
alignmentSizeAndLengthWriter.WriteByte((kind >
CustomDebugInfoKind
.DynamicLocals) ? alignmentSize : (byte)0);
CustomDebugInfoReader.cs (10)
41
private static void ReadRecordHeader(byte[] bytes, ref int offset, out byte version, out
CustomDebugInfoKind
kind, out int size, out int alignmentSize)
44
kind = (
CustomDebugInfoKind
)bytes[offset + 1];
54
public static ImmutableArray<byte> TryGetCustomDebugInfoRecord(byte[] customDebugInfo,
CustomDebugInfoKind
recordKind)
88
ReadRecordHeader(customDebugInfo, ref offset, out var version, out
var
kind, out var size, out var alignmentSize);
96
case
CustomDebugInfoKind
.EditAndContinueLambdaMap:
97
case
CustomDebugInfoKind
.EditAndContinueLocalSlotMap:
98
case
CustomDebugInfoKind
.TupleElementNames:
360
case
CustomDebugInfoKind
.UsingGroups:
369
case
CustomDebugInfoKind
.ForwardMethodInfo:
387
case
CustomDebugInfoKind
.ForwardModuleInfo:
CustomDebugInfoRecord.cs (2)
13
public readonly
CustomDebugInfoKind
Kind;
17
public CustomDebugInfoRecord(
CustomDebugInfoKind
kind, byte version, ImmutableArray<byte> data)
PEWriter\CustomDebugInfoWriter.cs (3)
142
CustomDebugInfoKind
.EditAndContinueLocalSlotMap,
150
CustomDebugInfoKind
.EditAndContinueLambdaMap,
158
CustomDebugInfoKind
.EditAndContinueStateMachineStateMap,
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (3)
PDB\MethodDebugInfo.Native.cs (3)
145
var customDebugInfoRecord = CustomDebugInfoReader.TryGetCustomDebugInfoRecord(customDebugInfo,
CustomDebugInfoKind
.StateMachineHoistedLocalScopes);
390
var record = CustomDebugInfoReader.TryGetCustomDebugInfoRecord(customDebugInfo,
CustomDebugInfoKind
.DynamicLocals);
478
var record = CustomDebugInfoReader.TryGetCustomDebugInfoRecord(customDebugInfo,
CustomDebugInfoKind
.TupleElementNames);
Microsoft.CodeAnalysis.UnitTests (31)
Emit\CustomDebugInfoTests.cs (31)
32
Assert.Throws<InvalidOperationException>(() => CustomDebugInfoReader.TryGetCustomDebugInfoRecord(new byte[0],
CustomDebugInfoKind
.EditAndContinueLocalSlotMap));
33
Assert.Throws<InvalidOperationException>(() => CustomDebugInfoReader.TryGetCustomDebugInfoRecord(new byte[] { 1 },
CustomDebugInfoKind
.EditAndContinueLocalSlotMap));
34
Assert.Throws<InvalidOperationException>(() => CustomDebugInfoReader.TryGetCustomDebugInfoRecord(new byte[] { 1, 2 },
CustomDebugInfoKind
.EditAndContinueLocalSlotMap));
37
Assert.True(CustomDebugInfoReader.TryGetCustomDebugInfoRecord(new byte[] { 5, 1, 0, 0 },
CustomDebugInfoKind
.EditAndContinueLocalSlotMap).IsDefault);
43
4, (byte)
CustomDebugInfoKind
.EditAndContinueLocalSlotMap,
46
Assert.True(CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi,
CustomDebugInfoKind
.EditAndContinueLocalSlotMap).IsDefault);
52
/*version*/4, /*kind*/(byte)
CustomDebugInfoKind
.EditAndContinueLocalSlotMap, /*padding*/0, 0, /*size:*/ 0, 0, 0, 0,
55
Assert.Throws<InvalidOperationException>(() => CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi,
CustomDebugInfoKind
.EditAndContinueLocalSlotMap));
61
/*version*/4, /*kind*/(byte)
CustomDebugInfoKind
.EditAndContinueLocalSlotMap, /*padding*/0, 0, /*size:*/ 0x00, 0x00, 0x00, 0x80,
65
Assert.Throws<InvalidOperationException>(() => CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi,
CustomDebugInfoKind
.EditAndContinueLocalSlotMap));
71
/*version*/4, /*kind*/(byte)
CustomDebugInfoKind
.EditAndContinueLocalSlotMap, /*padding*/0, 0, /*size:*/ 0x08, 0x00, 0x00, 0x00,
74
Assert.True(CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi,
CustomDebugInfoKind
.EditAndContinueLocalSlotMap).IsEmpty);
80
/*version*/4, /*kind*/(byte)
CustomDebugInfoKind
.EditAndContinueLocalSlotMap, /*padding*/0, 0, /*size:*/ 0x0a, 0x00, 0x00, 0x00,
84
Assert.Throws<InvalidOperationException>(() => CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi,
CustomDebugInfoKind
.EditAndContinueLocalSlotMap));
90
/*version*/4, /*kind*/(byte)
CustomDebugInfoKind
.EditAndContinueLocalSlotMap, /*padding*/0, 0, /*size:*/ 0x09, 0x00, 0x00, 0x00,
94
AssertEx.Equal(new byte[] { 0xab }, CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi,
CustomDebugInfoKind
.EditAndContinueLocalSlotMap));
100
/*version*/4, /*kind*/(byte)
CustomDebugInfoKind
.DynamicLocals, /*padding*/0, 0, /*size:*/ 0x09, 0x00, 0x00, 0x00,
104
Assert.True(CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi,
CustomDebugInfoKind
.EditAndContinueLocalSlotMap).IsDefault);
114
Assert.True(CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi,
CustomDebugInfoKind
.EditAndContinueLocalSlotMap).IsDefault);
120
/*version*/4, /*kind*/(byte)
CustomDebugInfoKind
.EditAndContinueLocalSlotMap, /*padding*/0, 0, /*size:*/ 0x09, 0x00, 0x00, 0x00,
122
/*version*/4, /*kind*/(byte)
CustomDebugInfoKind
.EditAndContinueLocalSlotMap, /*padding*/0, 0, /*size:*/ 0x09, 0x00, 0x00, 0x00,
126
AssertEx.Equal(new byte[] { 0xab }, CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi,
CustomDebugInfoKind
.EditAndContinueLocalSlotMap));
132
/*version*/4, /*kind*/(byte)
CustomDebugInfoKind
.DynamicLocals, /*padding*/0, 0, /*size:*/ 0x09, 0x00, 0x00, 0x00,
134
/*version*/4, /*kind*/(byte)
CustomDebugInfoKind
.EditAndContinueLocalSlotMap, /*padding*/0, 0, /*size:*/ 0x09, 0x00, 0x00, 0x00,
138
AssertEx.Equal(new byte[] { 0xcd }, CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi,
CustomDebugInfoKind
.EditAndContinueLocalSlotMap));
144
/*version*/4, /*kind*/(byte)
CustomDebugInfoKind
.DynamicLocals, /*padding*/0, 0, /*size:*/ 0x09, 0x00, 0x00, 0x00,
146
/*version*/4, /*kind*/(byte)
CustomDebugInfoKind
.EditAndContinueLocalSlotMap, /*padding*/0, 0, /*size:*/ 0x09, 0x00, 0x00, 0x00,
150
AssertEx.Equal(new byte[] { 0xab }, CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi,
CustomDebugInfoKind
.DynamicLocals));
361
Assert.Equal(
CustomDebugInfoKind
.EditAndContinueLocalSlotMap, deserialized[0].Kind);
372
Assert.Equal(
CustomDebugInfoKind
.EditAndContinueLambdaMap, deserialized[1].Kind);
734
Assert.Equal(
CustomDebugInfoKind
.ForwardMethodInfo, records[0].Kind);
Roslyn.Test.PdbUtilities (5)
Reader\CustomDebugInfoUtilities.cs (2)
26
return CustomDebugInfoReader.TryGetCustomDebugInfoRecord(customDebugInfoBlob,
CustomDebugInfoKind
.EditAndContinueLocalSlotMap);
31
return CustomDebugInfoReader.TryGetCustomDebugInfoRecord(customDebugInfoBlob,
CustomDebugInfoKind
.EditAndContinueLambdaMap);
Reader\MethodDebugInfoBytes.cs (3)
67
_bytesBuilder.Add((byte)
CustomDebugInfoKind
.UsingGroups);
103
_bytesBuilder.Add((byte)(isModuleLevel ?
CustomDebugInfoKind
.ForwardModuleInfo :
CustomDebugInfoKind
.ForwardMethodInfo));