Spicy
Public Member Functions | List of all members
hilti::ID Class Reference

#include <id.h>

Inheritance diagram for hilti::ID:
hilti::detail::IDBase< ID > hilti::NodeBase hilti::util::type_erasure::trait::Singleton hilti::trait::isNode

Public Member Functions

 ID (std::string name, Meta m)
 
IDoperator= (const std::string &s)
 
auto properties () const
 
- Public Member Functions inherited from hilti::detail::IDBase< ID >
 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
 
IDoperator+= (std::string other)
 
IDoperator+= (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
 
- Public Member Functions inherited from hilti::NodeBase
 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 >
auto childs (int begin, int end) const
 
auto childRefs (int begin, int end)
 
template<typename T >
hilti::node::Set< T > childsOfType () const
 
template<typename T >
std::vector< NodeRefchildRefsOfType () const
 
void addChild (Node n)
 
const auto & childs () const
 
auto & childs ()
 
auto & meta () const
 
void setMeta (Meta m)
 
bool pruneWalk () const
 

Detailed Description

AST node representing an identifier.

Member Function Documentation

◆ operator=()

ID& hilti::ID::operator= ( const std::string &  s)
inline

Assignment from string without changing location information.

◆ properties()

auto hilti::ID::properties ( ) const
inline

Implements the Node interface.


The documentation for this class was generated from the following file: