| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Location
Description
Locations exist for all "code entities"
- variables
- function calls
- function definitions
- while loops
- etc.
Locations are constructed only during parsing
- users should not construct locations
- Locations help to present security findings to users
In addition, locations are used as primary keys in the container database
- more precisely, locations are variables in the resulting Prolog program
- each location corresponds to exactly one "code entity"
- this is why users should never construct locations
- it is completely the parser's job !
Documentation
Lines and columns are 1-based, for compatability with Sarif.
The line number of the first line in a text artifact SHALL be 1.
Constructors
| Location | |
Instances
| FromJSON Location Source # | |
| ToJSON Location Source # | |
| Generic Location Source # | |
| Read Location Source # | |
| Show Location Source # | |
| Eq Location Source # | |
| Ord Location Source # | |
| type Rep Location Source # | |
Defined in Location type Rep Location = D1 ('MetaData "Location" "Location" "dhscanner-ast-1.1.2-inplace" 'False) (C1 ('MetaCons "Location" 'PrefixI 'True) ((S1 ('MetaSel ('Just "filename") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath) :*: S1 ('MetaSel ('Just "lineStart") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word)) :*: (S1 ('MetaSel ('Just "lineEnd") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word) :*: (S1 ('MetaSel ('Just "colStart") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word) :*: S1 ('MetaSel ('Just "colEnd") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word))))) | |