Ejemplo n.º 1
0
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());
}
Ejemplo n.º 2
0
void FunctionAnalyzer::visitDeinit(const DeinitializerDefPtr& node)
{
    TypePtr funcType = ctx->currentType->getDeinit()->getType();
    SCOPED_SET(ctx->currentFunction, funcType);
    node->getBody()->accept(semanticAnalyzer);
}