nw::script::SourceLocation

struct SourceLocation

Public Functions

inline size_t length() const noexcept

Gets the length of source code covered.

inline StringView view() const noexcept

Gets a view of the source code covered.

Public Members

const char *start = nullptr

Pointer to start of source code.

const char *end = nullptr

Pointer to end of source code.

SourceRange range

Source range.