1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00

No need for these now that source ranges are correct

This commit is contained in:
Timothy Clem 2016-11-07 16:11:30 -08:00
parent 41442873e0
commit 29cbf788cb

View File

@ -219,13 +219,9 @@ toTermName source term = case unwrap term of
S.Return expr -> maybe "empty" toTermName' expr
S.Yield expr -> maybe "empty" toTermName' expr
S.Error _ -> termNameFromSource term
S.If expr _ -> case unwrap expr of
(S.Negate condition) -> termNameFromSource condition
_ -> termNameFromSource expr
S.If expr _ -> termNameFromSource expr
S.For clauses _ -> termNameFromChildren term clauses
S.While expr _ -> case unwrap expr of
(S.Negate condition) -> termNameFromSource condition
_ -> toTermName' expr
S.While expr _ -> toTermName' expr
S.DoWhile _ expr -> toTermName' expr
S.Throw expr -> termNameFromSource expr
S.Constructor expr -> toTermName' expr