Safe Haskell | None |
---|---|
Language | Haskell98 |
Comment handling.
- annotateComments :: forall ast. (Data (ast NodeInfo), Traversable ast, Annotated ast) => ast SrcSpanInfo -> [Comment] -> ([ComInfo], ast NodeInfo)
- commentLocated :: ComInfoLocation -> NodeInfo -> Comment -> Bool
- spanTest :: ComInfoLocation -> SrcSpan -> SrcSpan -> Bool
Documentation
annotateComments :: forall ast. (Data (ast NodeInfo), Traversable ast, Annotated ast) => ast SrcSpanInfo -> [Comment] -> ([ComInfo], ast NodeInfo) Source
Annotate the AST with comments.
commentLocated :: ComInfoLocation -> NodeInfo -> Comment -> Bool Source
Is the comment after the node?