[Qt-creator] CaseStatementAST visitor

Roberto Raggi roberto.raggi at trolltech.com
Tue Feb 10 10:12:47 CET 2009


Hi Marek,

That's wrong! good catch. The code should look like

if (visitor->visit(this)) {
     accept(expression, visitor);
     accept(statement, visitor);
}

I push a fix in our internal repository, it will be available tomorrow  
in the public git repo.

Thanks for the report.
ciao robe


On Feb 9, 2009, at 10:45 PM, Marek Jasovsky wrote:

> Hi
>
> in AST:cpp
>
> void CaseStatementAST::accept0(ASTVisitor *visitor)
> {
>     if (visitor->visit(this)) {
>     }
> }
>
> is this correct? my tools now works for all nodes, but it did not  
> expand CaseStatementAST.
>
> if I replace above pasted code with content of  
> PrettyPrinter::visit(CaseStatementAST) then it seems to be ok and  
> node gets expanded
>
> thanks
>
> Marek
>
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator




More information about the Qt-creator-old mailing list