futhark-0.22.2: An optimising compiler for a functional, array-oriented language.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Futhark.LSP.Tool

Description

Generally useful definition used in various places in the language server implementation.

Synopsis

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 Ints).

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 Ints).

rangeFromSrcLoc :: SrcLoc -> Range Source #

Create an LSP Range from a Futhark SrcLoc.

rangeFromLoc :: Loc -> Range Source #

Create an LSP Range from a Futhark Loc.

posToUri :: Pos -> Uri Source #

Convert a Futhark Pos to an LSP Uri.

computeMapping :: State -> Maybe FilePath -> LspM () (Maybe PositionMapping) Source #

Entry point for computing PositionMapping.