slang::SourceBuffer struct

Represents a source buffer; that is, the actual text of the source code along with an identifier for the buffer which potentially encodes its include stack.

Public variables

std::string_view data
A view into the text comprising the buffer.
const SourceLibrary* library
The library associated with the buffer.
BufferID id
The ID assigned to the buffer.