forked from qt-creator/qt-creator
C++: Add parsing of Q_PRIVATE_PROPERTY.
Reviewed-by: Roberto Raggi
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user