ghcide-2.5.0.0: The core of an IDE
Safe HaskellSafe-Inferred
LanguageHaskell2010

Development.IDE.Spans.AtPoint

Description

Gives information about symbols at a given point in DAML files. These are all pure functions that should execute quickly.

Synopsis

Documentation

atPoint :: IdeOptions -> HieAstResult -> DocAndKindMap -> HscEnv -> Position -> IO (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.

pointCommand :: HieASTs t -> Position -> (HieAST t -> a) -> [a] Source #

referencesAtPoint Source #

Arguments

:: 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

nameToLocation :: MonadIO m => WithHieDb -> LookupModule m -> Name -> m (Maybe [Location]) Source #

Given a Name attempt to find the location where it is defined.

type LookupModule m = FilePath -> ModuleName -> Unit -> Bool -> MaybeT m Uri Source #

Gives a Uri for the module, given the .hie file location and the the module info The Bool denotes if it is a boot module