63 references to CustomDebugInfoKind
Microsoft.CodeAnalysis (24)
PEWriter\CustomDebugInfoWriter.cs (3)
142
CustomDebugInfoKind
.EditAndContinueLocalSlotMap,
150
CustomDebugInfoKind
.EditAndContinueLambdaMap,
158
CustomDebugInfoKind
.EditAndContinueStateMachineStateMap,
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoEncoder.cs (9)
58
CustomDebugInfoKind
.StateMachineTypeName,
70
CustomDebugInfoKind
.ForwardMethodInfo,
78
CustomDebugInfoKind
.ForwardModuleInfo,
95
CustomDebugInfoKind
.UsingGroups,
116
CustomDebugInfoKind
.StateMachineHoistedLocalScopes,
144
CustomDebugInfoKind
.DynamicLocals,
168
CustomDebugInfoKind
.TupleElementNames,
206
CustomDebugInfoKind
kind,
227
alignmentSizeAndLengthWriter.WriteByte((kind >
CustomDebugInfoKind
.DynamicLocals) ? alignmentSize : (byte)0);
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (10)
42
private static void ReadRecordHeader(byte[] bytes, ref int offset, out byte version, out
CustomDebugInfoKind
kind, out int size, out int alignmentSize)
45
kind = (
CustomDebugInfoKind
)bytes[offset + 1];
55
public static ImmutableArray<byte> TryGetCustomDebugInfoRecord(byte[] customDebugInfo,
CustomDebugInfoKind
recordKind)
89
ReadRecordHeader(customDebugInfo, ref offset, out var version, out
var
kind, out var size, out var alignmentSize);
97
case
CustomDebugInfoKind
.EditAndContinueLambdaMap:
98
case
CustomDebugInfoKind
.EditAndContinueLocalSlotMap:
99
case
CustomDebugInfoKind
.TupleElementNames:
361
case
CustomDebugInfoKind
.UsingGroups:
370
case
CustomDebugInfoKind
.ForwardMethodInfo:
388
case
CustomDebugInfoKind
.ForwardModuleInfo:
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoRecord.cs (2)
13
public readonly
CustomDebugInfoKind
Kind;
17
public CustomDebugInfoRecord(
CustomDebugInfoKind
kind, byte version, ImmutableArray<byte> data)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (3)
PDB\MethodDebugInfo.Native.cs (3)
145
var customDebugInfoRecord = CustomDebugInfoReader.TryGetCustomDebugInfoRecord(customDebugInfo,
CustomDebugInfoKind
.StateMachineHoistedLocalScopes);
391
var record = CustomDebugInfoReader.TryGetCustomDebugInfoRecord(customDebugInfo,
CustomDebugInfoKind
.DynamicLocals);
479
var record = CustomDebugInfoReader.TryGetCustomDebugInfoRecord(customDebugInfo,
CustomDebugInfoKind
.TupleElementNames);
Microsoft.CodeAnalysis.UnitTests (31)
Emit\CustomDebugInfoTests.cs (31)
28
Assert.Throws<InvalidOperationException>(() => CustomDebugInfoReader.TryGetCustomDebugInfoRecord(new byte[0],
CustomDebugInfoKind
.EditAndContinueLocalSlotMap));
29
Assert.Throws<InvalidOperationException>(() => CustomDebugInfoReader.TryGetCustomDebugInfoRecord(new byte[] { 1 },
CustomDebugInfoKind
.EditAndContinueLocalSlotMap));
30
Assert.Throws<InvalidOperationException>(() => CustomDebugInfoReader.TryGetCustomDebugInfoRecord(new byte[] { 1, 2 },
CustomDebugInfoKind
.EditAndContinueLocalSlotMap));
33
Assert.True(CustomDebugInfoReader.TryGetCustomDebugInfoRecord(new byte[] { 5, 1, 0, 0 },
CustomDebugInfoKind
.EditAndContinueLocalSlotMap).IsDefault);
39
4, (byte)
CustomDebugInfoKind
.EditAndContinueLocalSlotMap,
42
Assert.True(CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi,
CustomDebugInfoKind
.EditAndContinueLocalSlotMap).IsDefault);
48
/*version*/4, /*kind*/(byte)
CustomDebugInfoKind
.EditAndContinueLocalSlotMap, /*padding*/0, 0, /*size:*/ 0, 0, 0, 0,
51
Assert.Throws<InvalidOperationException>(() => CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi,
CustomDebugInfoKind
.EditAndContinueLocalSlotMap));
57
/*version*/4, /*kind*/(byte)
CustomDebugInfoKind
.EditAndContinueLocalSlotMap, /*padding*/0, 0, /*size:*/ 0x00, 0x00, 0x00, 0x80,
61
Assert.Throws<InvalidOperationException>(() => CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi,
CustomDebugInfoKind
.EditAndContinueLocalSlotMap));
67
/*version*/4, /*kind*/(byte)
CustomDebugInfoKind
.EditAndContinueLocalSlotMap, /*padding*/0, 0, /*size:*/ 0x08, 0x00, 0x00, 0x00,
70
Assert.True(CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi,
CustomDebugInfoKind
.EditAndContinueLocalSlotMap).IsEmpty);
76
/*version*/4, /*kind*/(byte)
CustomDebugInfoKind
.EditAndContinueLocalSlotMap, /*padding*/0, 0, /*size:*/ 0x0a, 0x00, 0x00, 0x00,
80
Assert.Throws<InvalidOperationException>(() => CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi,
CustomDebugInfoKind
.EditAndContinueLocalSlotMap));
86
/*version*/4, /*kind*/(byte)
CustomDebugInfoKind
.EditAndContinueLocalSlotMap, /*padding*/0, 0, /*size:*/ 0x09, 0x00, 0x00, 0x00,
90
AssertEx.Equal(new byte[] { 0xab }, CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi,
CustomDebugInfoKind
.EditAndContinueLocalSlotMap));
96
/*version*/4, /*kind*/(byte)
CustomDebugInfoKind
.DynamicLocals, /*padding*/0, 0, /*size:*/ 0x09, 0x00, 0x00, 0x00,
100
Assert.True(CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi,
CustomDebugInfoKind
.EditAndContinueLocalSlotMap).IsDefault);
110
Assert.True(CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi,
CustomDebugInfoKind
.EditAndContinueLocalSlotMap).IsDefault);
116
/*version*/4, /*kind*/(byte)
CustomDebugInfoKind
.EditAndContinueLocalSlotMap, /*padding*/0, 0, /*size:*/ 0x09, 0x00, 0x00, 0x00,
118
/*version*/4, /*kind*/(byte)
CustomDebugInfoKind
.EditAndContinueLocalSlotMap, /*padding*/0, 0, /*size:*/ 0x09, 0x00, 0x00, 0x00,
122
AssertEx.Equal(new byte[] { 0xab }, CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi,
CustomDebugInfoKind
.EditAndContinueLocalSlotMap));
128
/*version*/4, /*kind*/(byte)
CustomDebugInfoKind
.DynamicLocals, /*padding*/0, 0, /*size:*/ 0x09, 0x00, 0x00, 0x00,
130
/*version*/4, /*kind*/(byte)
CustomDebugInfoKind
.EditAndContinueLocalSlotMap, /*padding*/0, 0, /*size:*/ 0x09, 0x00, 0x00, 0x00,
134
AssertEx.Equal(new byte[] { 0xcd }, CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi,
CustomDebugInfoKind
.EditAndContinueLocalSlotMap));
140
/*version*/4, /*kind*/(byte)
CustomDebugInfoKind
.DynamicLocals, /*padding*/0, 0, /*size:*/ 0x09, 0x00, 0x00, 0x00,
142
/*version*/4, /*kind*/(byte)
CustomDebugInfoKind
.EditAndContinueLocalSlotMap, /*padding*/0, 0, /*size:*/ 0x09, 0x00, 0x00, 0x00,
146
AssertEx.Equal(new byte[] { 0xab }, CustomDebugInfoReader.TryGetCustomDebugInfoRecord(cdi,
CustomDebugInfoKind
.DynamicLocals));
407
Assert.Equal(
CustomDebugInfoKind
.EditAndContinueLocalSlotMap, deserialized[0].Kind);
418
Assert.Equal(
CustomDebugInfoKind
.EditAndContinueLambdaMap, deserialized[1].Kind);
780
Assert.Equal(
CustomDebugInfoKind
.ForwardMethodInfo, records[0].Kind);
Roslyn.Test.PdbUtilities (5)
Reader\CustomDebugInfoUtilities.cs (2)
25
return CustomDebugInfoReader.TryGetCustomDebugInfoRecord(customDebugInfoBlob,
CustomDebugInfoKind
.EditAndContinueLocalSlotMap);
30
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));