iter.init_statement->visit(*this);
if(iter.condition)
iter.condition->visit(*this);
+ iter.body.visit(*this);
if(iter.loop_expression)
iter.loop_expression->visit(*this);
- iter.body.visit(*this);
}
void TraversingVisitor::visit(Passthrough &pass)
}
}
-void NodeRemover::visit(StructDeclaration &strct)
+void NodeRemover::visit(TypeDeclaration &type)
{
- if(to_remove->count(&strct))
- remove_from_map(stage->types, strct.name, strct);
+ if(to_remove->count(&type))
+ remove_from_map(stage->types, type.name, type);
}
void NodeRemover::visit(VariableDeclaration &var)