Spicy
Public Member Functions | Public Attributes | List of all members
hilti::MemberVisitor Struct Reference
Inheritance diagram for hilti::MemberVisitor:
hilti::OptimizerVisitor hilti::detail::visitor::Visitor< Result, Dispatcher, Erased, order >

Public Member Functions

void collect (Node &node) override
 
bool prune_decls (Node &node) override
 
result_t operator() (const Module &m, position_t p)
 
result_t operator() (const declaration::Field &x, position_t p)
 
result_t operator() (const expression::Member &x, position_t p)
 
result_t operator() (const expression::ResolvedID &x, position_t p)
 
result_t operator() (const declaration::Constant &x, position_t p)
 
- Public Member Functions inherited from hilti::OptimizerVisitor
template<typename Position >
void replaceNode (Position &p, Node replacement)
 
template<typename Position >
void removeNode (Position &p)
 
virtual bool prune_uses (Node &)
 
- Public Member Functions inherited from hilti::detail::visitor::Visitor< Result, Dispatcher, Erased, order >
virtual void preDispatch (const Erased &, int)
 
auto dispatch (position_t &i)
 
auto dispatch (const_position_t &i)
 
auto dispatch (Erased *n)
 
auto dispatch (const Erased &n)
 
auto walk (const Erased &root)
 
auto walk (Erased *root)
 

Public Attributes

std::map< std::string, bool > _used
 
std::map< ID, std::map< std::string, bool > > _features
 
- Public Attributes inherited from hilti::OptimizerVisitor
Stage _stage = Stage::COLLECT
 
Module_current_module = nullptr
 

Additional Inherited Members

- Public Types inherited from hilti::OptimizerVisitor
enum  Stage { COLLECT, PRUNE_USES, PRUNE_DECLS }
 
- Public Types inherited from hilti::detail::visitor::Visitor< Result, Dispatcher, Erased, order >
using result_t = Result
 
using erased_t = Erased
 
using base_t = Visitor< Result, Dispatcher, Erased, order >
 
using visitor_t = Dispatcher
 
using iterator_t = Iterator< Erased, order, false >
 
using const_iterator_t = Iterator< Erased, order, true >
 
using position_t = typename iterator_t::Position
 
using const_position_t = typename const_iterator_t::Position
 
- Static Public Attributes inherited from hilti::detail::visitor::Visitor< Result, Dispatcher, Erased, order >
static const Order order_ = order
 

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