![]() |
Spicy
|
#include <id.h>
Public Member Functions | |
ID (std::string name, Meta m) | |
ID & | operator= (const std::string &s) |
auto | properties () const |
![]() | |
IDBase (const char *s) | |
IDBase (std::string s) | |
IDBase (std::string id, AlreadyNormalized) | |
IDBase (const T &... s) | |
IDBase (std::initializer_list< std::string > x) | |
const auto & | str () const |
ID | namespace_ () const |
ID | local () const |
bool | empty () const |
auto | length () const |
ID | sub (int i) const |
ID | sub (int from, int to) const |
ID | firstN (int n) const |
ID | lastN (int n) const |
ID | relativeTo (const ID &root) const |
ID | operator+ (const std::string &other) const |
ID | operator+ (const ID &other) const |
ID & | operator+= (std::string other) |
ID & | operator+= (const ID &other) |
bool | operator== (const ID &other) const |
bool | operator== (const std::string &other) const |
bool | operator!= (const ID &other) const |
bool | operator!= (const std::string &other) const |
bool | operator< (const ID &other) const |
operator bool () const | |
operator std::string () const | |
![]() | |
NodeBase (Meta meta) | |
NodeBase (std::vector< Node > children, Meta meta) | |
template<typename T > | |
const T & | child (int i) const |
template<typename T > | |
void | assertChildIsA (int i) |
template<typename T > | |
auto | children (int begin, int end) const |
auto | childRefs (int begin, int end) |
template<typename T > | |
hilti::node::Set< T > | childrenOfType () const |
template<typename T > | |
std::vector< NodeRef > | childRefsOfType () const |
void | addChild (Node n) |
const auto & | children () const |
auto & | children () |
auto & | meta () const |
void | setMeta (Meta m) |
bool | pruneWalk () const |
AST node representing an identifier.
|
inline |
Assignment from string without changing location information.
|
inline |
Implements the Node
interface.