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

Improve liftDeclaredName instance for Calls

This commit is contained in:
joshvera 2018-12-07 16:55:27 -05:00
parent 1d49437996
commit 59be0c0e00

View File

@ -22,7 +22,10 @@ import Reprinting.Tokenize hiding (Superclass)
-- | Typical prefix function application, like `f(x)` in many languages, or `f x` in Haskell.
data Call a = Call { callContext :: ![a], callFunction :: !a, callParams :: ![a], callBlock :: !a }
deriving (Declarations1, Diffable, Eq, Foldable, FreeVariables1, Functor, Generic1, Hashable1, Ord, Show, ToJSONFields1, Traversable, Named1, Message1, NFData1)
deriving (Diffable, Eq, Foldable, FreeVariables1, Functor, Generic1, Hashable1, Ord, Show, ToJSONFields1, Traversable, Named1, Message1, NFData1)
instance Declarations1 Call where
liftDeclaredName declaredName Call{..} = declaredName callFunction
instance Eq1 Call where liftEq = genericLiftEq
instance Ord1 Call where liftCompare = genericLiftCompare