]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/syntax.h
Assign a result type to all expressions
[libs/gl.git] / source / glsl / syntax.h
index ae05c02e4379c429207418fdadac16ba81b3d011..2c832c149e2467ba346867eb453cc8850b7a11a6 100644 (file)
@@ -102,7 +102,7 @@ template<typename T>
 class NodeArray: public NodeContainer<std::vector<RefPtr<T> > >
 { };
 
-struct StructDeclaration;
+struct TypeDeclaration;
 struct VariableDeclaration;
 struct InterfaceBlock;
 struct FunctionDeclaration;
@@ -131,6 +131,9 @@ struct Expression: Node
 {
        const Operator *oper;
 
+       TypeDeclaration *type;
+       bool lvalue;
+
        Expression();
 
        virtual Expression *clone() const = 0;