mirror of
https://github.com/github/semantic.git
synced 2025-01-08 08:30:27 +03:00
Stub in a RenderableSplitDiff type.
This commit is contained in:
parent
c70eb44f90
commit
6703efceb6
@ -132,6 +132,8 @@ instance Monoid (Line a) where
|
|||||||
-- | A diff with only one side’s annotations.
|
-- | A diff with only one side’s annotations.
|
||||||
type SplitDiff leaf annotation = Free (Annotated leaf annotation) (Term leaf annotation)
|
type SplitDiff leaf annotation = Free (Annotated leaf annotation) (Term leaf annotation)
|
||||||
|
|
||||||
|
newtype RenderableSplitDiff leaf annotation = RenderableSplitDiff (String, SplitDiff leaf annotation)
|
||||||
|
|
||||||
splitDiffByLines :: Diff a Info -> (Int, Int) -> (String, String) -> ([Row (SplitDiff a Info)], (Range, Range))
|
splitDiffByLines :: Diff a Info -> (Int, Int) -> (String, String) -> ([Row (SplitDiff a Info)], (Range, Range))
|
||||||
splitDiffByLines diff (prevLeft, prevRight) sources = case diff of
|
splitDiffByLines diff (prevLeft, prevRight) sources = case diff of
|
||||||
Free (Annotated annotation syntax) -> (splitAnnotatedByLines sources (ranges annotation) (categories annotation) syntax, ranges annotation)
|
Free (Annotated annotation syntax) -> (splitAnnotatedByLines sources (ranges annotation) (categories annotation) syntax, ranges annotation)
|
||||||
|
Loading…
Reference in New Issue
Block a user