示例#1
0
 public void GetSequencePoints(ArrayBuilder <Cci.SequencePoint> builder)
 {
     if (HasAnySequencePoints)
     {
         _sequencePoints.GetSequencePoints(_debugDocumentProvider, builder);
     }
 }
示例#2
0
        private static ImmutableArray <Cci.SequencePoint> GetSequencePoints(SequencePointList sequencePoints, DebugDocumentProvider debugDocumentProvider)
        {
            if (sequencePoints == null || sequencePoints.IsEmpty)
            {
                return(ImmutableArray <Cci.SequencePoint> .Empty);
            }

            var sequencePointsBuilder = ArrayBuilder <Cci.SequencePoint> .GetInstance();

            sequencePoints.GetSequencePoints(debugDocumentProvider, sequencePointsBuilder);
            return(sequencePointsBuilder.ToImmutableAndFree());
        }
示例#3
0
 public ImmutableArray <Cci.SequencePoint> GetSequencePoints()
 {
     return(HasAnySequencePoints ?
            _sequencePoints.GetSequencePoints(_debugDocumentProvider) :
            ImmutableArray <Cci.SequencePoint> .Empty);
 }