summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/CheckDeclaration.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@nokia.com>2010-02-06 15:47:46 +0100
committerErik Verbruggen <erik.verbruggen@nokia.com>2010-02-07 10:49:03 +0100
commit7b913f7fa2e1a372177fe6ddff05d90b8b6827b8 (patch)
tree92275b1eed5fd5d357472b4279b13ce80ae4bb03 /src/shared/cplusplus/CheckDeclaration.cpp
parent21488e8898b1aaf5d33b3a33b488e2e280219f06 (diff)
downloadqt-creator-7b913f7fa2e1a372177fe6ddff05d90b8b6827b8.tar.gz
Changed Q_PROPERTY parsing and AST storage.
Diffstat (limited to 'src/shared/cplusplus/CheckDeclaration.cpp')
-rw-r--r--src/shared/cplusplus/CheckDeclaration.cpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/shared/cplusplus/CheckDeclaration.cpp b/src/shared/cplusplus/CheckDeclaration.cpp
index b5c402e314..faeac37e10 100644
--- a/src/shared/cplusplus/CheckDeclaration.cpp
+++ b/src/shared/cplusplus/CheckDeclaration.cpp
@@ -831,13 +831,16 @@ bool CheckDeclaration::visit(QtPropertyDeclarationAST *ast)
semantic()->check(ast->type_id, _scope);
if (ast->property_name)
semantic()->check(ast->property_name, _scope);
- if (ast->read_function)
- semantic()->check(ast->read_function, _scope);
- if (ast->write_function)
- semantic()->check(ast->write_function, _scope);
- if (ast->reset_function)
- semantic()->check(ast->reset_function, _scope);
- if (ast->notify_function)
- semantic()->check(ast->notify_function, _scope);
+
+ for (QtPropertyDeclarationItemListAST *iter = ast->property_declaration_items;
+ iter; iter = iter->next) {
+ if (! iter->value)
+ continue;
+
+ if (QtPropertyDeclarationNamingItemAST *namedItem = iter->value->asQtPropertyDeclarationNamingItem())
+ if (namedItem->name_value)
+ semantic()->check(namedItem->name_value, _scope);
+ }
+
return false;
}