struct
#include <slang/text/SourceLocation.h>
SourceLibrary A named collection of source buffers that form a library.
Each buffer is associated with one library. Libraries are uniqued by name, so identity for the rest of the program is by object address, not by the name string.
Constructors, destructors, conversion operators
- SourceLibrary() defaulted
- Default constructor.
-
SourceLibrary(std::
string&& name, int priority) - Constructs a new source library object with the given name.
Public variables
-
std::
string name - The name of the library.
-
std::
vector<std:: filesystem:: path> includeDirs - Additional include directories that are used when parsing files that are part of this library.
- int priority
- The priority of this library relative to others in the search order.
- bool isDefault
- Set to true if this is the default library.
Variable documentation
int slang:: SourceLibrary:: priority
The priority of this library relative to others in the search order.
Lower numbers are higher priority.