1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 06:41:45 +03:00

Add Constructor to toTermName

This commit is contained in:
joshvera 2016-07-30 14:26:01 -04:00
parent 347f0309dd
commit 27941fd2ce

View File

@ -68,6 +68,7 @@ toTermName source term = case unwrap term of
forClauseRanges = characterRange . extract <$> exprs forClauseRanges = characterRange . extract <$> exprs
S.While expr _ -> toTermName' expr S.While expr _ -> toTermName' expr
S.DoWhile _ expr -> toTermName' expr S.DoWhile _ expr -> toTermName' expr
S.Constructor expr -> toTermName' expr
Comment a -> toCategoryName a Comment a -> toCategoryName a
where toTermName' = toTermName source where toTermName' = toTermName source