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

#include <try.h>

Inheritance diagram for hilti::statement::Try:
hilti::NodeBase hilti::trait::isStatement hilti::trait::isNode hilti::trait::isNode

Public Member Functions

 Try (hilti::Statement body, std::vector< try_::Catch > catches, Meta m=Meta())
 
const auto & body () const
 
auto catches () const
 
bool operator== (const Try &other) const
 
auto & _bodyNode ()
 
auto & _lastCatchNode ()
 
void _addCatch (try_::Catch catch_)
 
auto isEqual (const hilti::Statement &other) const
 
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 for a "try" statement.

Member Function Documentation

◆ _addCatch()

void hilti::statement::Try::_addCatch ( try_::Catch  catch_)
inline

Internal method for use by builder API only.

◆ _bodyNode()

auto& hilti::statement::Try::_bodyNode ( )
inline

Internal method for use by builder API only.

◆ _lastCatchNode()

auto& hilti::statement::Try::_lastCatchNode ( )
inline

Internal method for use by builder API only.

◆ isEqual()

auto hilti::statement::Try::isEqual ( const hilti::Statement &  other) const
inline

Implements the Statement interface.

◆ properties()

auto hilti::statement::Try::properties ( ) const
inline

Implements the Node interface.


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