mirror of
https://github.com/alexwl/haskell-code-explorer.git
synced 2024-11-22 23:42:17 +03:00
Index type constructor in RoleAnnotDecl
This commit is contained in:
parent
c6fc26d897
commit
2b5cbccffa
@ -62,6 +62,7 @@ import GHC
|
||||
, TyFamEqn(..)
|
||||
#endif
|
||||
, Type
|
||||
, RoleAnnotDecl(..)
|
||||
, unLoc
|
||||
)
|
||||
#if MIN_VERSION_GLASGOW_HASKELL(8,4,3,0)
|
||||
@ -111,7 +112,8 @@ namesFromRenamedSource =
|
||||
hsRecFieldExprNames `extQ`
|
||||
hsRecAmbFieldExprNames `extQ`
|
||||
hsRecFieldPatNames `extQ`
|
||||
foreignDeclNames)
|
||||
foreignDeclNames `extQ`
|
||||
roleAnnotationNames)
|
||||
|
||||
#if MIN_VERSION_GLASGOW_HASKELL(8,4,3,0)
|
||||
fieldOccName :: Bool -> FieldOcc GhcRn -> NameOccurrence
|
||||
@ -599,3 +601,16 @@ foreignDeclNames decl =
|
||||
, isBinder = True
|
||||
}
|
||||
]
|
||||
|
||||
#if MIN_VERSION_GLASGOW_HASKELL(8,4,3,0)
|
||||
roleAnnotationNames :: RoleAnnotDecl GhcRn -> [NameOccurrence]
|
||||
#else
|
||||
roleAnnotationNames :: RoleAnnotDecl Name -> [NameOccurrence]
|
||||
#endif
|
||||
roleAnnotationNames (RoleAnnotDecl n _) =
|
||||
[ NameOccurrence
|
||||
{ locatedName = Just <$> n
|
||||
, description = "RoleAnnotDecl"
|
||||
, isBinder = False
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user