mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +03:00
Rename toLeafInfos' to toLeafInfos.
This commit is contained in:
parent
c6b49cba94
commit
c3f510f83d
@ -114,13 +114,13 @@ toTOCSummaries patch = case afterOrBefore patch of
|
|||||||
|
|
||||||
flattenPatch :: Patch DiffInfo -> [Patch DiffInfo]
|
flattenPatch :: Patch DiffInfo -> [Patch DiffInfo]
|
||||||
flattenPatch patch = case patch of
|
flattenPatch patch = case patch of
|
||||||
Replace i1 i2 -> zipWith Replace (toLeafInfos' i1) (toLeafInfos' i2)
|
Replace i1 i2 -> zipWith Replace (toLeafInfos i1) (toLeafInfos i2)
|
||||||
Insert info -> Insert <$> toLeafInfos' info
|
Insert info -> Insert <$> toLeafInfos info
|
||||||
Delete info -> Delete <$> toLeafInfos' info
|
Delete info -> Delete <$> toLeafInfos info
|
||||||
|
|
||||||
toLeafInfos' :: DiffInfo -> [DiffInfo]
|
toLeafInfos :: DiffInfo -> [DiffInfo]
|
||||||
toLeafInfos' BranchInfo{..} = branches >>= toLeafInfos'
|
toLeafInfos BranchInfo{..} = branches >>= toLeafInfos
|
||||||
toLeafInfos' leaf = [leaf]
|
toLeafInfos leaf = [leaf]
|
||||||
|
|
||||||
mapToInSummarizable :: forall leaf fields. HasDefaultFields fields => Both Source -> SyntaxDiff leaf fields -> [TOCSummary DiffInfo] -> [TOCSummary DiffInfo]
|
mapToInSummarizable :: forall leaf fields. HasDefaultFields fields => Both Source -> SyntaxDiff leaf fields -> [TOCSummary DiffInfo] -> [TOCSummary DiffInfo]
|
||||||
mapToInSummarizable sources diff children = case (beforeTerm diff, afterTerm diff) of
|
mapToInSummarizable sources diff children = case (beforeTerm diff, afterTerm diff) of
|
||||||
|
Loading…
Reference in New Issue
Block a user