Portability | GHC-only |
---|---|
Stability | provisional |
Maintainer | Fontaine@cs.uni-duesseldorf.de |
This module contains the datatype for sourcelocations and some utility functions.
Documentation
TokIdPos TokenId | |
TokIdSpan TokenId TokenId | |
TokSpan Token Token | |
TokPos Token | |
NoLocation | |
FixedLoc | |
|
getStartLine :: SrcLoc -> SrcLineSource
getStartCol :: SrcLoc -> SrcColSource
getTokenLen :: SrcLoc -> SrcOffsetSource
getEndLine :: SrcLoc -> SrcLineSource
getEndTokenId :: SrcLoc -> TokenIdSource
getStartToken :: SrcLoc -> TokenSource
getEndToken :: SrcLoc -> TokenSource
computeEndPos :: Token -> AlexPosnSource
srcLocFromTo :: SrcLoc -> SrcLoc -> SrcLocSource
srcLocBetween :: SrcLoc -> SrcLoc -> SrcLocSource