mirror of
https://github.com/github/semantic.git
synced 2024-12-01 00:33:59 +03:00
Drop values missing declarations.
This commit is contained in:
parent
95047d10a2
commit
a8538e2287
@ -159,7 +159,8 @@ entrySummary entry = case entry of
|
||||
Replaced a -> recordSummary a "modified"
|
||||
where recordSummary record = case getDeclaration record of
|
||||
Just (ErrorDeclaration text) -> Just . const (ErrorSummary text (sourceSpan record))
|
||||
declaration -> Just . JSONSummary (toCategoryName (category record)) (maybe "" declarationIdentifier declaration) (sourceSpan record)
|
||||
Just declaration -> Just . JSONSummary (toCategoryName (category record)) (declarationIdentifier declaration) (sourceSpan record)
|
||||
Nothing -> const Nothing
|
||||
|
||||
renderToC :: (HasField fields Category, HasField fields (Maybe Declaration), HasField fields SourceSpan, Traversable f) => Both SourceBlob -> Diff f (Record fields) -> Summaries
|
||||
renderToC blobs = uncurry Summaries . bimap toMap toMap . List.partition isValidSummary . diffTOC
|
||||
|
Loading…
Reference in New Issue
Block a user