Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Generally useful definition used in various places in the language server implementation.
Synopsis
- getHoverInfoFromState :: State -> Maybe FilePath -> Int -> Int -> Maybe Hover
- findDefinitionRange :: State -> Maybe FilePath -> Int -> Int -> Maybe Location
- rangeFromSrcLoc :: SrcLoc -> Range
- rangeFromLoc :: Loc -> Range
- posToUri :: Pos -> Uri
- computeMapping :: State -> Maybe FilePath -> LspM () (Maybe PositionMapping)
Documentation
getHoverInfoFromState :: State -> Maybe FilePath -> Int -> Int -> Maybe Hover Source #
Retrieve hover info for the definition referenced at the given
file at the given line and column number (the two Int
s).
findDefinitionRange :: State -> Maybe FilePath -> Int -> Int -> Maybe Location Source #
Find the location of the definition referenced at the given file
at the given line and column number (the two Int
s).
computeMapping :: State -> Maybe FilePath -> LspM () (Maybe PositionMapping) Source #
Entry point for computing PositionMapping.