![]() |
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 (const std::initializer_list< std::string > &x) | |
const auto & | str () const |
ID | namespace_ () const |
ID | local () const |
bool | empty () 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 > childs, Meta meta) | |
template<typename T > | |
const T & | child (int i) const |
template<typename T > | |
void | assertChildIsA (int i) |
template<typename T > | |
std::vector< T > | childs (int begin, int end) const |
template<typename T > | |
std::vector< T > | childsOfType () const |
template<typename T > | |
auto | nodesOfType () const |
template<typename T > | |
auto | nodesOfType () |
void | addChild (Node n) |
auto & | childs () const |
auto & | childs () |
auto & | meta () const |
void | setMeta (Meta m) |
const NodeRef & | originalNode () const |
void | setOriginalNode (const NodeRef &n) |
void | clearCache () |
AST node representing an identifier.
|
inline |
Assignment from string without changing location information.
|
inline |
Implements the Node
interface.