/// <summary> /// Adds new sequence point to report /// </summary> public override void VisitMethodPoint(Instruction instruction, CodeSegment segment, Context context) { var pointEntry = new PointEntry( segment.StartLine, segment.StartColumn, segment.EndLine, segment.EndColumn, segment.Document, context.ShouldInstrumentCurrentMember ); context.ReportBuilder.AddPoint(pointEntry); }
/// <summary> /// Add new sequence point to report /// </summary> /// <param name="newPoint"></param> public void AddPoint(PointEntry newPoint) { _currentMethod.Points.Add(newPoint); }