mirror of
https://github.com/github/semantic.git
synced 2025-01-05 14:11:33 +03:00
Add FunctionCall case to DiffSummary cata
This commit is contained in:
parent
0a13b664a7
commit
7ca44b9844
@ -72,6 +72,7 @@ diffSummary = cata $ \case
|
||||
(Free (infos :< Indexed children)) -> prependSummary (category $ snd infos) <$> join children
|
||||
(Free (infos :< Fixed children)) -> prependSummary (category $ snd infos) <$> join children
|
||||
(Free (infos :< Keyed children)) -> prependSummary (category $ snd infos) <$> join (Prologue.toList children)
|
||||
(Free (infos :< Syntax.FunctionCall identifier children)) -> prependSummary (category $ snd infos) <$> join (Prologue.toList (identifier : children))
|
||||
(Pure (Insert term)) -> (\info -> DiffSummary (Insert info) []) <$> termToDiffInfo term
|
||||
(Pure (Delete term)) -> (\info -> DiffSummary (Delete info) []) <$> termToDiffInfo term
|
||||
(Pure (Replace t1 t2)) -> (\(info1, info2) -> DiffSummary (Replace info1 info2) []) <$> zip (termToDiffInfo t1) (termToDiffInfo t2)
|
||||
|
Loading…
Reference in New Issue
Block a user