Home | History | Annotate | Download | only in Basic

Lines Matching defs:SourceRange

193 class SourceRange {
197 SourceRange(): B(SourceLocation()), E(SourceLocation()) {}
198 SourceRange(SourceLocation loc) : B(loc), E(loc) {}
199 SourceRange(SourceLocation begin, SourceLocation end) : B(begin), E(end) {}
210 bool operator==(const SourceRange &X) const {
214 bool operator!=(const SourceRange &X) const {
221 /// The underlying SourceRange can either specify the starting/ending character
227 SourceRange Range;
231 CharSourceRange(SourceRange R, bool ITR) : Range(R), IsTokenRange(ITR) {}
233 static CharSourceRange getTokenRange(SourceRange R) {
237 static CharSourceRange getCharRange(SourceRange R) {
242 return getTokenRange(SourceRange(B, E));
245 return getCharRange(SourceRange(B, E));
256 SourceRange getAsRange() const { return Range; }