Introduced ForeachStatementAST and the bits to parse foreach statements when qtMocRun is enabled.

This commit is contained in:
Roberto Raggi
2009-07-03 09:11:52 +02:00
parent 16286b763d
commit 3cdd48067c
16 changed files with 185 additions and 14 deletions

View File

@@ -251,7 +251,7 @@ bool CheckDeclaration::visit(AccessDeclarationAST *ast)
semantic()->switchVisibility(visibility);
if (ast->slots_token)
semantic()->switchMethodKey(Function::SlotMethod);
else if (accessSpecifier == T_SIGNALS)
else if (accessSpecifier == T_Q_SIGNALS)
semantic()->switchMethodKey(Function::SignalMethod);
else
semantic()->switchMethodKey(Function::NormalMethod);