Safe Haskell | None |
---|---|
Language | Haskell2010 |
Functions for manipulating SourceRange
s, which represent a range of
locations in the source code between two points.
This module is intended to be imported qualified.
- create :: ClangBase m => SourceLocation s' -> SourceLocation s'' -> ClangT s m (SourceRange s)
- createInvalid :: ClangBase m => ClangT s m (SourceRange s)
- getStart :: ClangBase m => SourceRange s' -> ClangT s m (SourceLocation s)
- getEnd :: ClangBase m => SourceRange s' -> ClangT s m (SourceLocation s)
- isInvalid :: SourceRange s' -> Bool
Creating ranges
:: ClangBase m | |
=> SourceLocation s' | Starting location. |
-> SourceLocation s'' | Ending location. |
-> ClangT s m (SourceRange s) |
Creates a SourceRange
representing the range between two locations.
createInvalid :: ClangBase m => ClangT s m (SourceRange s) Source
Creates an invalid SourceRange
.
Analyzing ranges
getStart :: ClangBase m => SourceRange s' -> ClangT s m (SourceLocation s) Source
Retrieves the beginning of the given range.
getEnd :: ClangBase m => SourceRange s' -> ClangT s m (SourceLocation s) Source
Retrieves the end of the given range.
isInvalid :: SourceRange s' -> Bool Source
Returns True
if the given range is invalid.