]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/syntax.cpp
Further refactor block and scope management
[libs/gl.git] / source / glsl / syntax.cpp
index 957b49cea61a149fc213f9dbe71ecc9fa9774d1b..0b9ecb54ca9d0aef569b9ebc4fe7477ec8202415 100644 (file)
@@ -73,7 +73,17 @@ Statement::Statement():
 
 
 Block::Block():
-       use_braces(false)
+       use_braces(false),
+       anonymous(false),
+       parent(0)
+{ }
+
+Block::Block(const Block &other):
+       Node(other),
+       body(other.body),
+       use_braces(other.use_braces),
+       anonymous(other.anonymous),
+       parent(0)
 { }
 
 void Block::visit(NodeVisitor &visitor)