mirror of
https://github.com/github/semantic.git
synced 2024-12-01 09:15:01 +03:00
one line
This commit is contained in:
parent
4f978b7586
commit
dbf8fe2385
@ -165,8 +165,7 @@ toTermName source term = case unwrap term of
|
|||||||
S.Indexed children -> fromMaybe "branch" $ (toCategoryName . category) . extract <$> head children
|
S.Indexed children -> fromMaybe "branch" $ (toCategoryName . category) . extract <$> head children
|
||||||
Leaf leaf -> toCategoryName leaf
|
Leaf leaf -> toCategoryName leaf
|
||||||
S.Assignment identifier _ -> toTermName' identifier
|
S.Assignment identifier _ -> toTermName' identifier
|
||||||
S.Function identifier _ _ ->
|
S.Function identifier _ _ -> toTermName' identifier
|
||||||
toTermName' identifier
|
|
||||||
S.FunctionCall i args -> case unwrap i of
|
S.FunctionCall i args -> case unwrap i of
|
||||||
S.AnonymousFunction params _ ->
|
S.AnonymousFunction params _ ->
|
||||||
-- Omit a function call's arguments if it's arguments match the underlying
|
-- Omit a function call's arguments if it's arguments match the underlying
|
||||||
|
Loading…
Reference in New Issue
Block a user