]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/validate.h
Record location information in all syntax nodes
[libs/gl.git] / source / glsl / validate.h
index 6149fd7f9b439fac7d26c01d7b59ce037624f62c..01f2ba4f82c75d6ce76cba2c77eef6eb43d7f707 100644 (file)
@@ -17,8 +17,8 @@ protected:
 
        Validator();
 
-       void diagnose(Statement *, Diagnostic::Severity, const std::string &);
-       void error(Statement *s, const std::string &m) { diagnose(s, Diagnostic::ERR, m); }
+       void diagnose(Node &, Diagnostic::Severity, const std::string &);
+       void error(Node &n, const std::string &m) { diagnose(n, Diagnostic::ERR, m); }
 };
 
 class DeclarationValidator: private Validator