summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/Control.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@nokia.com>2009-11-11 09:32:05 +0100
committerErik Verbruggen <erik.verbruggen@nokia.com>2009-11-11 09:34:10 +0100
commita6bbec2b56f4a07f408bf3213b3b15fa6fc10330 (patch)
treec6a15058f80fd1131df2efa2e446858b30239133 /src/shared/cplusplus/Control.cpp
parent72d4493fc21535f1f2720106e28ae3a6980851f5 (diff)
downloadqt-creator-a6bbec2b56f4a07f408bf3213b3b15fa6fc10330.tar.gz
Added symbols for property declarations.
Diffstat (limited to 'src/shared/cplusplus/Control.cpp')
-rw-r--r--src/shared/cplusplus/Control.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/shared/cplusplus/Control.cpp b/src/shared/cplusplus/Control.cpp
index 249d671ae1..d2b91e14a2 100644
--- a/src/shared/cplusplus/Control.cpp
+++ b/src/shared/cplusplus/Control.cpp
@@ -129,6 +129,7 @@ public:
delete_array_entries(objcForwardClassDeclarations);
delete_array_entries(objcForwardProtocolDeclarations);
delete_array_entries(objcMethods);
+ delete_array_entries(objcPropertyDeclarations);
}
NameId *findOrInsertNameId(Identifier *id)
@@ -393,6 +394,13 @@ public:
return method;
}
+ ObjCPropertyDeclaration *newObjCPropertyDeclaration(unsigned sourceLocation, Name *name)
+ {
+ ObjCPropertyDeclaration *decl = new ObjCPropertyDeclaration(translationUnit, sourceLocation, name);
+ objcPropertyDeclarations.push_back(decl);
+ return decl;
+ }
+
Enum *newEnum(unsigned sourceLocation, Name *name)
{
Enum *e = new Enum(translationUnit,
@@ -577,6 +585,7 @@ public:
std::vector<ObjCForwardClassDeclaration *> objcForwardClassDeclarations;
std::vector<ObjCForwardProtocolDeclaration *> objcForwardProtocolDeclarations;
std::vector<ObjCMethod *> objcMethods;
+ std::vector<ObjCPropertyDeclaration *> objcPropertyDeclarations;
// ObjC context keywords:
Identifier *objcGetterId;
@@ -787,6 +796,9 @@ ObjCForwardProtocolDeclaration *Control::newObjCForwardProtocolDeclaration(unsig
ObjCMethod *Control::newObjCMethod(unsigned sourceLocation, Name *name)
{ return d->newObjCMethod(sourceLocation, name); }
+ObjCPropertyDeclaration *Control::newObjCPropertyDeclaration(unsigned sourceLocation, Name *name)
+{ return d->newObjCPropertyDeclaration(sourceLocation, name); }
+
Identifier *Control::objcGetterId() const
{ return d->objcGetterId; }