// NewRange creates a source range given the beginning and ending source // locations. func NewRange(beg, end SourceLocation) SourceRange { o := C.clang_getRange(beg.c, end.c) return SourceRange{o} }
// Retrieve a source range given the beginning and ending source locations. func (sl SourceLocation) Range(end SourceLocation) SourceRange { return SourceRange{C.clang_getRange(sl.c, end.c)} }