error(iface, format("Use of unlinked input block '%s'", iface.name));
}
+void ReferenceValidator::visit(FunctionCall &call)
+{
+ if(!call.declaration && !call.constructor)
+ error(call, format("Call to undeclared function '%s'", call.name));
+ TraversingVisitor::visit(call);
+}
+
void ReferenceValidator::visit(VariableDeclaration &var)
{
if(!var.type_declaration)
virtual void visit(VariableReference &);
virtual void visit(MemberAccess &);
virtual void visit(InterfaceBlockReference &);
+ virtual void visit(FunctionCall &);
virtual void visit(VariableDeclaration &);
virtual void visit(InterfaceBlock &);
virtual void visit(FunctionDeclaration &);