+void populate_types(Stage &stage)
+{
+ for(NodeList<Statement>::const_iterator i=stage.content.body.begin(); i!=stage.content.body.end(); ++i)
+ if(TypeDeclaration *type = dynamic_cast<TypeDeclaration *>(i->get()))
+ stage.types[type->name] = type;
+}
+