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

#include <function.h>

Inheritance diagram for hilti::Function:
hilti::NodeBase hilti::trait::isNode

Public Member Functions

 Function (ID id, Type type, std::optional< Statement > body, function::CallingConvention cc=function::CallingConvention::Standard, std::optional< AttributeSet > attrs={}, Meta m=Meta())
 
const auto & id () const
 
const auto & type () const
 
NodeRef typeRef ()
 
const auto & ftype () const
 
auto body () const
 
auto attributes () const
 
auto callingConvention () const
 
bool isStatic () const
 
bool operator== (const Function &other) const
 
void setBody (Statement b)
 
void setID (ID id)
 
void setResultType (Type t)
 
Node_typeNode ()
 
auto properties () 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 a function.

Member Function Documentation

◆ _typeNode()

Node& hilti::Function::_typeNode ( )
inline

Internal method for use by builder API only.

◆ properties()

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

Implements the Node interface.


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