28 references to EditAndContinueLocalSlotMap
Microsoft.CodeAnalysis (2)
PEWriter\CustomDebugInfoWriter.cs (1)
142
CustomDebugInfoKind.
EditAndContinueLocalSlotMap
,
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (1)
98
case CustomDebugInfoKind.
EditAndContinueLocalSlotMap
:
Microsoft.CodeAnalysis.UnitTests (25)
Emit\CustomDebugInfoTests.cs (25)
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
));
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
));
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
));
142
/*version*/4, /*kind*/(byte)CustomDebugInfoKind.
EditAndContinueLocalSlotMap
, /*padding*/0, 0, /*size:*/ 0x09, 0x00, 0x00, 0x00,
407
Assert.Equal(CustomDebugInfoKind.
EditAndContinueLocalSlotMap
, deserialized[0].Kind);
Roslyn.Test.PdbUtilities (1)
Reader\CustomDebugInfoUtilities.cs (1)
25
return CustomDebugInfoReader.TryGetCustomDebugInfoRecord(customDebugInfoBlob, CustomDebugInfoKind.
EditAndContinueLocalSlotMap
);