Added @synchronized parsing for Objective-C.

This commit is contained in:
Erik Verbruggen
2009-07-31 16:53:05 +02:00
parent 4967280449
commit e205126774
8 changed files with 90 additions and 1 deletions

View File

@@ -1550,4 +1550,16 @@ ObjCFastEnumerationAST *ObjCFastEnumerationAST::clone(MemoryPool *pool) const
return ast;
}
ObjCSynchronizedStatementAST *ObjCSynchronizedStatementAST::clone(MemoryPool *pool) const
{
ObjCSynchronizedStatementAST *ast = new (pool) ObjCSynchronizedStatementAST;
ast->synchronized_token = synchronized_token;
ast->lparen_token = lparen_token;
if (synchronized_object) ast->synchronized_object = synchronized_object->clone(pool);
ast->rparen_token = rparen_token;
if (statement) ast->statement = statement->clone(pool);
return ast;
}
CPLUSPLUS_END_NAMESPACE