1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 16:02:43 +03:00

Give this a signature

This commit is contained in:
Timothy Clem 2019-12-13 13:43:59 -08:00
parent 8ade6db251
commit 7e0c6b5417

View File

@ -63,6 +63,13 @@ instance (ToTags l, ToTags r) => ToTagsBy 'Custom (l :+: r) where
tags' (L1 l) = tags l
tags' (R1 r) = tags r
keywordFunctionCall
:: ( Has (Reader Source) sig m
, Has (Writer Tags.Tags) sig m
, Generic1 t
, Tags.GFoldable1 ToTags (Rep1 t)
)
=> t Loc -> Loc -> Range -> Text -> m ()
keywordFunctionCall t loc range name = do
src <- ask @Source
let sliced = slice src range