public static IEnumerable <MarkedUpCodeLinePosition> PositionsInMarkedSpans( this MarkedUpCode markedUpCode) { foreach (var position in Enumerable.Range( markedUpCode.Span.Start, markedUpCode.Span.Length + 1)) { var linePosition = markedUpCode.SourceText.Lines.GetLinePosition(position); yield return(new MarkedUpCodeLinePosition(markedUpCode, linePosition)); } }
public MarkedUpCodeLinePosition(MarkedUpCode markedUpCode, in LinePosition linePosition)