slang::SourceRange class

Combines a pair of source locations that denote a range of source text.

Contents

Public functions

auto start() const -> SourceLocation
auto end() const -> SourceLocation

Function documentation

SourceLocation slang::SourceRange::start() const

Returns the start of the range.

SourceLocation slang::SourceRange::end() const

Returns the end of the range.