public void GetSequencePoints(ArrayBuilder <Cci.SequencePoint> builder) { if (HasAnySequencePoints) { _sequencePoints.GetSequencePoints(_debugDocumentProvider, builder); } }
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()); }
public ImmutableArray <Cci.SequencePoint> GetSequencePoints() { return(HasAnySequencePoints ? _sequencePoints.GetSequencePoints(_debugDocumentProvider) : ImmutableArray <Cci.SequencePoint> .Empty); }