Skip to content

Commit

Permalink
Use Mono.Cecil's IsHidden property instead of checking ourselves.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjp committed May 1, 2018
1 parent f694acf commit 7c8f5d0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/coverlet.core/Instrumentation/Instrumenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ private void InstrumentIL(MethodDefinition method)
{
var instruction = processor.Body.Instructions[index];
var sequencePoint = method.DebugInformation.GetSequencePoint(instruction);
if (sequencePoint == null || sequencePoint.StartLine == HiddenSequencePoint)
if (sequencePoint == null || sequencePoint.IsHidden)
{
index++;
continue;
Expand Down Expand Up @@ -258,7 +258,5 @@ private static MethodInfo GetMarkExecutedMethod()
{
return typeof(CoverageTracker).GetMethod(nameof(CoverageTracker.MarkExecuted));
}

private const int HiddenSequencePoint = 0xFEEFEE;
}
}

0 comments on commit 7c8f5d0

Please sign in to comment.