![]() |
Spicy
|
#include <switch.h>
Public Member Functions | |
Switch (std::optional< Expression > expr, const std::vector< switch_::Case > &cases, Engine e, std::optional< Expression > cond, std::vector< Hook > hooks, std::optional< AttributeSet > attributes, Meta m=Meta()) | |
Engine | engine () const |
auto | attributes () const |
auto | cases () const |
auto | condition () const |
auto | expression () const |
auto | hooks () const |
auto | itemRefs () const |
bool | hasNoFields () const |
hilti::optional_ref< const switch_::Case > | case_ (const type::unit::item::Field &x) |
bool | operator== (const Switch &other) const |
const Type & | itemType () const |
bool | isResolved () const |
auto | isEqual (const Item &other) const |
auto | properties () 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 for a unit field.
hilti::optional_ref< const spicy::type::unit::item::switch_::Case > spicy::type::unit::item::Switch::case_ | ( | const type::unit::item::Field & | x | ) |
Returns the case that an field is part of, if any.
i: The field.
bool spicy::type::unit::item::Switch::hasNoFields | ( | ) | const |
Returns true if there's no field storing information.