X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Fdebug.h;h=c3e9c701075b87974a7e5101ad635bf0bf8e5d8b;hp=a5dae0905c3dec3b5d0b01f644a4da8a18eac4fc;hb=76cc18518fc8b0b4fa11fda153e7d9b3899ed112;hpb=3a1fe833ea04df75449706f1d773f6e65521a392 diff --git a/source/glsl/debug.h b/source/glsl/debug.h index a5dae090..c3e9c701 100644 --- a/source/glsl/debug.h +++ b/source/glsl/debug.h @@ -37,15 +37,17 @@ private: std::vector tree; public: - const std::string &apply(Stage &); + std::string apply(Stage &); + std::string apply(Node &n) { n.visit(*this); return formatted; } private: void append(const std::string &); + void append(const Node &, const std::string &); void append_subtree(const std::vector &); + void append_subtree(Node &); void begin_sub(); void last_branch(); void end_sub(); - void annotated_branch(const std::string &, Node &); unsigned get_label(const Node &); std::string format_type(TypeDeclaration *); @@ -54,7 +56,6 @@ private: virtual void visit(Block &); virtual void visit(Literal &); - virtual void visit(ParenthesizedExpression &); virtual void visit(VariableReference &); virtual void visit(InterfaceBlockReference &); virtual void visit(MemberAccess &);