purescript-0.13.0: PureScript Programming Language Compiler

Safe HaskellNone
LanguageHaskell2010

Language.PureScript.CST.Positions

Description

This module contains utilities for calculating positions and offsets. While tokens are annotated with ranges, CST nodes are not, but they can be dynamically derived with the functions in this module, which will return the first and last tokens for a given node.

Documentation

multiLine :: Int -> (Int, Int) -> (Int, Int) Source #

commentDelta :: (a -> (Int, Int)) -> Comment a -> (Int, Int) Source #