mirror of
https://github.com/github/semantic.git
synced 2024-12-22 06:11:49 +03:00
Don’t bind syntax.
This commit is contained in:
parent
274095720b
commit
628bf46ed3
@ -97,7 +97,7 @@ diffTOC blobs diff = removeDupes (diffToTOCSummaries (source <$> blobs) diff) >>
|
||||
diff' = free (Prologue.fst <$> diff)
|
||||
(beforeInfo, afterInfo) = runJoin $ termToDiffInfo <$> sources
|
||||
in case first (toTOCSummaries . mapPatch beforeInfo afterInfo) diff of
|
||||
(Free (_ :< syntax)) -> mapToInSummarizable sources diff' (toList syntax >>= snd)
|
||||
(Free _) -> mapToInSummarizable sources diff' (toList diff >>= snd)
|
||||
(Pure summaries) -> summaries
|
||||
|
||||
-- Mark which leaves are summarizable.
|
||||
|
Loading…
Reference in New Issue
Block a user