コード例 #1
0
        /// <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);
        }
コード例 #2
0
 /// <summary>
 /// Add new sequence point to report
 /// </summary>
 /// <param name="newPoint"></param>
 public void AddPoint(PointEntry newPoint)
 {
     _currentMethod.Points.Add(newPoint);
 }