mirror of
https://github.com/github/semantic.git
synced 2025-01-05 14:11:33 +03:00
🔥 Declaration.Interface constructor
This commit is contained in:
parent
0be9d6adf2
commit
7dd673ada9
@ -96,12 +96,6 @@ instance Eq1 Module where liftEq = genericLiftEq
|
|||||||
instance Ord1 Module where liftCompare = genericLiftCompare
|
instance Ord1 Module where liftCompare = genericLiftCompare
|
||||||
instance Show1 Module where liftShowsPrec = genericLiftShowsPrec
|
instance Show1 Module where liftShowsPrec = genericLiftShowsPrec
|
||||||
|
|
||||||
data Interface a = Interface { interfaceIdentifier :: !a, interfaceBody :: ![a] }
|
|
||||||
deriving (Diffable, Eq, Foldable, Functor, GAlign, Generic1, Show, Traversable)
|
|
||||||
|
|
||||||
instance Eq1 Interface where liftEq = genericLiftEq
|
|
||||||
instance Show1 Interface where liftShowsPrec = genericLiftShowsPrec
|
|
||||||
|
|
||||||
-- | A decorator in Python
|
-- | A decorator in Python
|
||||||
data Decorator a = Decorator { decoratorIdentifier :: !a, decoratorParamaters :: ![a], decoratorBody :: !a }
|
data Decorator a = Decorator { decoratorIdentifier :: !a, decoratorParamaters :: ![a], decoratorBody :: !a }
|
||||||
deriving (Diffable, Eq, Foldable, Functor, GAlign, Generic1, Mergeable, Ord, Show, Traversable)
|
deriving (Diffable, Eq, Foldable, Functor, GAlign, Generic1, Mergeable, Ord, Show, Traversable)
|
||||||
|
@ -29,7 +29,6 @@ type Syntax =
|
|||||||
, Declaration.Constructor
|
, Declaration.Constructor
|
||||||
, Declaration.Function
|
, Declaration.Function
|
||||||
, Declaration.Import
|
, Declaration.Import
|
||||||
, Declaration.Interface
|
|
||||||
, Declaration.Method
|
, Declaration.Method
|
||||||
, Declaration.Module
|
, Declaration.Module
|
||||||
, Expression.Arithmetic
|
, Expression.Arithmetic
|
||||||
|
Loading…
Reference in New Issue
Block a user