|
Joos1W Compiler Framework
|
A range of locations in a source file. More...
#include <Location.h>
Public Member Functions | |
| SourceRange () | |
| Construct a new SourceRange with no associated file. | |
| SourceRange (SourceFile file) | |
| SourceRange (SourceLocation begin, SourceLocation end) | |
| Construct a new SourceRange with the given begin and end locations. | |
| bool | isValid () const |
| Returns true if the SourceRange was not default constructed. Checks if each SourceLocation is valid. | |
| std::ostream & | print (std::ostream &os) const |
| std::string | toString () const |
| SourceLocation | range_start () const |
| SourceLocation | range_end () const |
Static Public Member Functions | |
| static SourceRange | merge (SourceRange const &a, SourceRange const &b) |
A range of locations in a source file.
Definition at line 54 of file Location.h.