Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Annotation = A {
- unitVar :: Int
- number :: Int
- refactored :: Maybe Position
- newNode :: Bool
- deleteNode :: Bool
- stencilSpec :: Maybe SpecAnnotation
- stencilBlock :: Maybe (Block (Analysis Annotation))
- type A = Annotation
- type UA = Analysis (UnitAnnotation A)
- unitAnnotation :: Annotation
- pRefactored :: Annotation -> Bool
- onPrev :: (a -> a) -> Analysis a -> Analysis a
- getAstSpec :: Annotation -> Maybe SpecDecls
- getParseSpec :: Annotation -> Maybe Specification
- getRegionSpec :: Annotation -> Maybe RegionDecl
- giveAstSpec :: SpecDecls -> Annotation -> Annotation
- giveParseSpec :: Specification -> Annotation -> Annotation
- giveRegionSpec :: RegionDecl -> Annotation -> Annotation
- type Report = String
- buildCommentText :: MetaInfo -> Int -> String -> String
Annotation Datatype
data Annotation Source #
A | |
|
type A = Annotation Source #
Predicates
pRefactored :: Annotation -> Bool Source #
Transformation Helpers
Specification Annotation Helpers
getAstSpec :: Annotation -> Maybe SpecDecls Source #
Retrieve a normalized specification from an annotation.
getParseSpec :: Annotation -> Maybe Specification Source #
Retrieve a parsed specification from an annotation.
getRegionSpec :: Annotation -> Maybe RegionDecl Source #
Retrieve a region environment from an annotation.
giveAstSpec :: SpecDecls -> Annotation -> Annotation Source #
Set the annotation's stencil specification to a normalized specification.
giveParseSpec :: Specification -> Annotation -> Annotation Source #
Set the annotation's stencil specification to a parsed specification.
giveRegionSpec :: RegionDecl -> Annotation -> Annotation Source #
Set the annotation's stencil specification to a region alias.