USE_SWALLOW_NS #define ACCEPT(node) do { \ Node* n = node.get(); \ if(n) { \ n->accept(this); \ } \ } while(0); void NodeVisitor::visitDeinit(const DeinitializerDefPtr& node) { ACCEPT(node->getBody()); }
void FunctionAnalyzer::visitDeinit(const DeinitializerDefPtr& node) { TypePtr funcType = ctx->currentType->getDeinit()->getType(); SCOPED_SET(ctx->currentFunction, funcType); node->getBody()->accept(semanticAnalyzer); }