error(var, format("Use of unlinked input variable '%s'", var.name));
}
+void ReferenceValidator::visit(MemberAccess &memacc)
+{
+ if(memacc.left->type && !memacc.declaration)
+ error(memacc, format("Use of undeclared member '%s'", memacc.member));
+ TraversingVisitor::visit(memacc);
+}
+
void ReferenceValidator::visit(InterfaceBlockReference &iface)
{
/* An interface block reference without a declaration should be impossible
virtual void visit(BasicTypeDeclaration &);
virtual void visit(ImageTypeDeclaration &);
virtual void visit(VariableReference &);
+ virtual void visit(MemberAccess &);
virtual void visit(InterfaceBlockReference &);
virtual void visit(VariableDeclaration &);
virtual void visit(InterfaceBlock &);