1
1
mirror of https://github.com/github/semantic.git synced 2025-01-06 06:46:07 +03:00

🔥 MathAssignment termToDiffInfo case

This commit is contained in:
Rick Winfrey 2016-09-28 08:49:34 -05:00
parent 4dca35677c
commit 8e67113507

View File

@ -190,7 +190,6 @@ termToDiffInfo :: (HasCategory leaf, HasField fields Category, HasField fields R
termToDiffInfo blob term = case unwrap term of
S.Indexed children -> BranchInfo (termToDiffInfo' <$> children) (toCategoryName term) BIndexed
S.Fixed children -> BranchInfo (termToDiffInfo' <$> children) (toCategoryName term) BFixed
S.MathAssignment identifier _ -> LeafInfo (toCategoryName term) (toTermName' identifier)
-- Currently we cannot express the operator for an operator production from TreeSitter. Eventually we should be able to
-- use the term name of the operator identifier when we have that production value. Until then, I'm using a placeholder value
-- to indicate where that value should be when constructing DiffInfos.