declarations[current_block->parent].insert(make_pair(name, &statement));
}
+void DeclarationValidator::visit(StructDeclaration &strct)
+{
+ check_definition(strct.name, strct);
+ TraversingVisitor::visit(strct);
+}
+
void DeclarationValidator::visit(VariableDeclaration &var)
{
check_definition(var.name, var);
void check_definition(const std::string &, Statement &);
void record_definition(const std::string &, Statement &);
+ virtual void visit(StructDeclaration &);
virtual void visit(VariableDeclaration &);
virtual void visit(InterfaceBlock &);
virtual void visit(FunctionDeclaration &);