mirror of
https://github.com/github/semantic.git
synced 2024-12-23 06:41:45 +03:00
Add Try to toTermName
This commit is contained in:
parent
ddcb6f6a1d
commit
0bfa2fef2b
@ -68,6 +68,7 @@ toTermName source term = case unwrap term of
|
||||
forClauseRanges = characterRange . extract <$> exprs
|
||||
S.While expr _ -> toTermName' expr
|
||||
S.DoWhile _ expr -> toTermName' expr
|
||||
S.Try expr _ _ -> toText $ Source.slice (characterRange $ extract expr) source
|
||||
Comment a -> toCategoryName a
|
||||
where toTermName' = toTermName source
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user