Safe Haskell | None |
---|
- nullSrcSpan :: SrcSpan
- mkToken :: Token -> SimpPos -> String -> GhcPosToken
- gs2f :: SrcSpan -> ForestSpan
- f2gs :: ForestSpan -> SrcSpan
- gs2ss :: SrcSpan -> SimpSpan
- ss2gs :: SimpSpan -> SrcSpan
- insertForestLineInSrcSpan :: ForestLine -> SrcSpan -> SrcSpan
- showSrcSpan :: SrcSpan -> String
- showSrcSpanF :: SrcSpan -> String
- newNameTok :: Bool -> SrcSpan -> Name -> GhcPosToken
- type GhcPosToken = (Located Token, String)
Documentation
mkToken :: Token -> SimpPos -> String -> GhcPosTokenSource
Compose a new token using the given arguments.
Span conversion functions
gs2f :: SrcSpan -> ForestSpanSource
f2gs :: ForestSpan -> SrcSpanSource
insertForestLineInSrcSpan :: ForestLine -> SrcSpan -> SrcSpanSource
Replace any ForestLine flags already in a SrcSpan with the given ones TODO ++AZ++ : should not be required, convert to SimSpan then use that
showSrcSpan :: SrcSpan -> StringSource
showSrcSpanF :: SrcSpan -> StringSource
newNameTok :: Bool -> SrcSpan -> Name -> GhcPosTokenSource
Create a new name token. If useQual
then use the qualified
name, if it exists.
The end position is not changed, so the eventual realignment can
know what the difference in length in the token is
type GhcPosToken = (Located Token, String)Source