diff options
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) |