Spicy
Public Member Functions | List of all members
spicy::Hook Class Reference

#include <hook.h>

Inheritance diagram for spicy::Hook:
hilti::NodeBase hilti::trait::isNode

Public Member Functions

 Hook (const std::vector< type::function::Parameter > &params, std::optional< Statement > body, Engine engine, std::optional< AttributeSet > attrs={}, Meta m=Meta())
 
const auto & function () const
 
auto body () const
 
const auto & ftype () const
 
const auto & id () const
 
const auto & type () const
 
Engine engine () const
 
NodeRef ddRef () const
 
hilti::optional_ref< const spicy::type::UnitunitType () const
 
hilti::optional_ref< const spicy::type::unit::item::FieldunitField () const
 
std::optional< Expression > priority () const
 
bool isForEach () const
 
bool isDebug () const
 
void setID (ID id)
 
void setUnitTypeRef (NodeRef p)
 
void setFieldRef (NodeRef p)
 
void setDDType (Type t)
 
void setResultType (Type t)
 
bool operator== (const Hook &other) const
 
auto properties () const
 
- Public Member Functions inherited from hilti::NodeBase
 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< NodeRefchildRefsOfType () const
 
void addChild (Node n)
 
const auto & children () const
 
auto & children ()
 
auto & meta () const
 
void setMeta (Meta m)
 
bool pruneWalk () const
 

Detailed Description

AST node representing a Spicy unit hook.


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