| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Tokstyle.Analysis.SecurityRank.Annotations
Synopsis
- type AnnotationMap = Map Text FunctionAnnotation
- type FunctionAnnotation = Map Text SecurityRank
- parseAllAnnotations :: [(FilePath, [Node (Lexeme Text)])] -> AnnotationMap
Documentation
type AnnotationMap = Map Text FunctionAnnotation Source #
Maps a function or struct member name to its full annotation.
type FunctionAnnotation = Map Text SecurityRank Source #
Maps a parameter name (or "return", "sink", "sink_max") to its rank.
parseAllAnnotations :: [(FilePath, [Node (Lexeme Text)])] -> AnnotationMap Source #
The main entry point. Traverses all translation units and returns the complete annotation map.