Safe Haskell | None |
---|---|
Language | Haskell2010 |
Gives information about symbols at a given point in DAML files. These are all pure functions that should execute quickly.
Synopsis
- atPoint :: IdeOptions -> HieAstResult -> DocAndKindMap -> HscEnv -> Position -> Maybe (Maybe Range, [Text])
- gotoDefinition :: MonadIO m => WithHieDb -> LookupModule m -> IdeOptions -> Map ModuleName NormalizedFilePath -> HieASTs a -> Position -> MaybeT m [Location]
- gotoTypeDefinition :: MonadIO m => WithHieDb -> LookupModule m -> IdeOptions -> HieAstResult -> Position -> MaybeT m [Location]
- documentHighlight :: Monad m => HieASTs a -> RefMap a -> Position -> MaybeT m [DocumentHighlight]
- pointCommand :: HieASTs t -> Position -> (HieAST t -> a) -> [a]
- referencesAtPoint :: MonadIO m => WithHieDb -> NormalizedFilePath -> Position -> FOIReferences -> m [Location]
- computeTypeReferences :: Foldable f => f (HieAST Type) -> Map Name [Span]
- newtype FOIReferences = FOIReferences (HashMap NormalizedFilePath (HieAstResult, PositionMapping))
- defRowToSymbolInfo :: Res DefRow -> Maybe SymbolInformation
- getAstNamesAtPoint :: HieASTs a -> Position -> PositionMapping -> [Name]
- toCurrentLocation :: PositionMapping -> Location -> Maybe Location
- rowToLoc :: Res RefRow -> Maybe Location
Documentation
atPoint :: IdeOptions -> HieAstResult -> DocAndKindMap -> HscEnv -> Position -> Maybe (Maybe Range, [Text]) Source #
Synopsis for the name at a given position.
gotoDefinition :: MonadIO m => WithHieDb -> LookupModule m -> IdeOptions -> Map ModuleName NormalizedFilePath -> HieASTs a -> Position -> MaybeT m [Location] Source #
Locate the definition of the name at a given position.
gotoTypeDefinition :: MonadIO m => WithHieDb -> LookupModule m -> IdeOptions -> HieAstResult -> Position -> MaybeT m [Location] Source #
documentHighlight :: Monad m => HieASTs a -> RefMap a -> Position -> MaybeT m [DocumentHighlight] Source #
:: MonadIO m | |
=> WithHieDb | |
-> NormalizedFilePath | The file the cursor is in |
-> Position | position in the file |
-> FOIReferences | references data for FOIs |
-> m [Location] |
newtype FOIReferences Source #
HieFileResult for files of interest, along with the position mappings
getAstNamesAtPoint :: HieASTs a -> Position -> PositionMapping -> [Name] Source #
toCurrentLocation :: PositionMapping -> Location -> Maybe Location Source #