mirror of
https://github.com/github/semantic.git
synced 2025-01-03 13:02:37 +03:00
Use the Bicrosswalk instance directly.
This commit is contained in:
parent
224332fb86
commit
4f8ef622aa
@ -95,7 +95,7 @@ alignBranch getRange children ranges = case intersectingChildren of
|
||||
where (intersectingChildren, nonIntersectingChildren) = partition (or . intersects getRange headRanges) children
|
||||
(symmetricalChildren, asymmetricalChildren) = partition (isThese . runJoin) intersectingChildren
|
||||
intersectionsWithHeadRanges = fromThese True True . runJoin . intersects getRange headRanges
|
||||
Just headRanges = sequenceL (listToMaybe <$> Join (runBothWith These ranges))
|
||||
Just headRanges = Join <$> bisequenceL (runJoin (listToMaybe <$> Join (runBothWith These ranges)))
|
||||
(leftRange, rightRange) = splitThese headRanges
|
||||
alignAsymmetrically range advanceBy = let (line, remaining) = lineAndRemaining asymmetricalChildren range in
|
||||
line $ alignBranch getRange (remaining <> symmetricalChildren <> nonIntersectingChildren) (modifyJoin (advanceBy (drop 1)) ranges)
|
||||
|
Loading…
Reference in New Issue
Block a user