C++: Add parsing of Q_PRIVATE_PROPERTY.

Reviewed-by: Roberto Raggi
This commit is contained in:
Christian Kamm
2010-12-08 15:08:03 +01:00
parent 40725cfd6d
commit 16542241c9
11 changed files with 90 additions and 1 deletions

View File

@@ -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)