]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/syntax.h
Further refactor block and scope management
[libs/gl.git] / source / glsl / syntax.h
index 05bcee545f4a62431ddf8c00978d766e6c670565..d646e558e9cdc44f607abb147cf45f6e840ae849 100644 (file)
@@ -107,10 +107,13 @@ struct Block: Node
 {
        NodeList<Statement> body;
        bool use_braces;
+       bool anonymous;
        std::map<std::string, StructDeclaration *> types;
        std::map<std::string, VariableDeclaration *> variables;
+       Block *parent;
 
        Block();
+       Block(const Block &);
 
        virtual Block *clone() const { return new Block(*this); }
        virtual void visit(NodeVisitor &);