mirror of
https://github.com/github/semantic.git
synced 2024-11-28 18:23:44 +03:00
Bring back Commented, even if it isn't used yet
This commit is contained in:
parent
d9288f7e78
commit
148aa3024b
@ -244,6 +244,7 @@ termToDiffInfo blob term = case unwrap term of
|
||||
S.Fixed children -> BranchInfo (termToDiffInfo' <$> children) (toCategoryName term) BFixed
|
||||
S.AnonymousFunction _ _ -> LeafInfo "anonymous function" (toTermName' term) (getField $ extract term)
|
||||
S.Comment _ -> HideInfo
|
||||
S.Commented cs leaf -> BranchInfo (termToDiffInfo' <$> cs <> maybeToList leaf) (toCategoryName term) BCommented
|
||||
S.Error _ -> ErrorInfo (getField $ extract term) (toTermName' term)
|
||||
_ -> LeafInfo (toCategoryName term) (toTermName' term) (getField $ extract term)
|
||||
where toTermName' = toTermName blob
|
||||
|
Loading…
Reference in New Issue
Block a user