Example #1
0
        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));
            }
        }
Example #2
0
 public MarkedUpCodeLinePosition(MarkedUpCode markedUpCode, in LinePosition linePosition)