1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00

Rename the range to next indices function.

This commit is contained in:
Rob Rix 2016-03-14 15:56:09 -04:00
parent 8c296b83be
commit ec4b30eee7

View File

@ -92,8 +92,8 @@ childLines sources child (followingLines, next) | or $ (>) . end <$> childRanges
<> followingLines, start <$> childRanges)
where pairWithNothing = fmap (fmap ((,) Nothing))
placeChildAndRangeInContainer = fmap (fmap (first (Just . (<$ child))))
trailingContextLines = linesInRangeOfSource <$> rangeOfContextToNext <*> sources
rangeOfContextToNext = (Range <$> (end <$> childRanges) <*> next)
trailingContextLines = linesInRangeOfSource <$> rangeUntilNext <*> sources
rangeUntilNext = (Range <$> (end <$> childRanges) <*> next)
childRanges = unionLineRangesFrom <$> (rangeAt <$> next) <*> sequenceA (copoint child)
-- | Produce open/closed lines for the portion of the source spanned by a range.