mirror of
https://github.com/github/semantic.git
synced 2024-12-23 06:41:45 +03:00
Move the definition onto a new line.
This commit is contained in:
parent
0a1b3508ee
commit
4d99c94bc2
@ -134,7 +134,8 @@ groupChildrenByLine :: Join These [Range] -> [AlignedDiff leaf] -> [Join These (
|
||||
groupChildrenByLine ranges children = go rangeLists children
|
||||
where rangeLists = these (flip (,) []) ((,) []) (,) (runJoin ranges)
|
||||
go ranges children | (l:ls, r:rs) <- ranges
|
||||
, (child:rest) <- children = go ranges rest
|
||||
, (child:rest) <- children
|
||||
= go ranges rest
|
||||
| otherwise = uncurry (alignWith (fmap (flip (,) []) . Join)) ranges
|
||||
|
||||
intersects :: Range -> Range -> Bool
|
||||
|
Loading…
Reference in New Issue
Block a user