diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2009-07-31 16:53:05 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2009-07-31 16:53:05 +0200 |
commit | e2051267743b521c44602480441b5e4c0de04396 (patch) | |
tree | fae9b639e6867e476c85634ad143d214d3bbf4ae /src/shared/cplusplus/AST.h | |
parent | 49672804490cc3b6561432497f4a999a35d6ad07 (diff) | |
download | qt-creator-e2051267743b521c44602480441b5e4c0de04396.tar.gz |
Added @synchronized parsing for Objective-C.
Diffstat (limited to 'src/shared/cplusplus/AST.h')
-rw-r--r-- | src/shared/cplusplus/AST.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/shared/cplusplus/AST.h b/src/shared/cplusplus/AST.h index fb84d4d0a9..dcdf5abee2 100644 --- a/src/shared/cplusplus/AST.h +++ b/src/shared/cplusplus/AST.h @@ -3232,6 +3232,28 @@ protected: virtual void accept0(ASTVisitor *visitor); }; +class CPLUSPLUS_EXPORT ObjCSynchronizedStatementAST: public StatementAST +{ +public: + unsigned synchronized_token; + unsigned lparen_token; + ExpressionAST *synchronized_object; + unsigned rparen_token; + StatementAST *statement; + +public: + virtual ObjCSynchronizedStatementAST *asObjCSynchronizedStatement() + { return this; } + + virtual unsigned firstToken() const; + virtual unsigned lastToken() const; + + virtual ObjCSynchronizedStatementAST *clone(MemoryPool *pool) const; + +protected: + virtual void accept0(ASTVisitor *visitor); +}; + CPLUSPLUS_END_NAMESPACE CPLUSPLUS_END_HEADER |