![]() |
Spicy
|
#include <function.h>
Public Member Functions | |
Function (::hilti::Function function, Linkage linkage=Linkage::Private, Meta m=Meta()) | |
const ::hilti::Function & | function () const |
hilti::optional_ref< const Declaration > | parent () const |
hilti::optional_ref< const type::Struct > | parentStructType () const |
void | setFunction (::hilti::Function f) |
void | setLinkage (Linkage x) |
void | setParentRef (NodeRef p) |
bool | operator== (const Function &other) const |
bool | isConstant () const |
const ID & | id () const |
Linkage | linkage () const |
std::string | displayName () const |
auto | isEqual (const Declaration &other) const |
auto | properties () const |
![]() | |
const ID & | canonicalID () const |
void | setCanonicalID (ID id) |
![]() | |
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 declaration of an function.
|
inline |
Implements Declaration
interface.
|
inline |
Implements Declaration
interface.
|
inline |
Implements Declaration
interface.
|
inline |
Implements Declaration
interface.
|
inline |
Implements Declaration
interface.
|
inline |
Returns the parent declaration associated with the function, if any. For methods, this will the declaration of the corresponding struct type.
|
inline |
If the parent declaration associated with the function refers to a valid struct type, returns that type.
|
inline |
Implements Node
interface.