diff options
author | Christian Kamm <christian.d.kamm@nokia.com> | 2010-12-08 15:08:03 +0100 |
---|---|---|
committer | Christian Kamm <christian.d.kamm@nokia.com> | 2011-01-04 15:58:22 +0100 |
commit | 16542241c91d6a4296bfbd18077de4eff1f43c8b (patch) | |
tree | 88a4487347d1802eefbb7c9690a52f95e38188d2 /src/shared/cplusplus/AST.cpp | |
parent | 40725cfd6db30ccb06239a3fb04de80f1e8d276e (diff) | |
download | qt-creator-16542241c91d6a4296bfbd18077de4eff1f43c8b.tar.gz |
C++: Add parsing of Q_PRIVATE_PROPERTY.
Reviewed-by: Roberto Raggi
Diffstat (limited to 'src/shared/cplusplus/AST.cpp')
-rw-r--r-- | src/shared/cplusplus/AST.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/shared/cplusplus/AST.cpp b/src/shared/cplusplus/AST.cpp index 1db8baadee..0ef2b0e062 100644 --- a/src/shared/cplusplus/AST.cpp +++ b/src/shared/cplusplus/AST.cpp @@ -3387,6 +3387,11 @@ unsigned QtPropertyDeclarationAST::firstToken() const return property_specifier_token; if (lparen_token) return lparen_token; + if (expression) + if (unsigned candidate = expression->firstToken()) + return candidate; + if (comma_token) + return comma_token; if (type_id) if (unsigned candidate = type_id->firstToken()) return candidate; @@ -3415,6 +3420,11 @@ unsigned QtPropertyDeclarationAST::lastToken() const if (type_id) if (unsigned candidate = type_id->lastToken()) return candidate; + if (comma_token) + return comma_token + 1; + if (expression) + if (unsigned candidate = expression->lastToken()) + return candidate; if (lparen_token) return lparen_token + 1; if (property_specifier_token) |